Skip to content

Commit c6a6e63

Browse files
committed
internal: Pin commit of rust-lang/rust for rustc-test metrics
1 parent cbc579e commit c6a6e63

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

crates/rust-analyzer/src/cli/rustc_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ impl flags::RustcTests {
276276
pub fn run(self) -> Result<()> {
277277
let mut tester = Tester::new()?;
278278
let walk_dir = WalkDir::new(self.rustc_repo.join("tests/ui"));
279+
eprintln!("Running tests for tests/ui");
279280
for i in walk_dir {
280281
let i = i?;
281282
let p = i.into_path();

xtask/src/metrics.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ impl Metrics {
8686
fn measure_rustc_tests(&mut self, sh: &Shell) -> anyhow::Result<()> {
8787
eprintln!("\nMeasuring rustc tests");
8888

89-
cmd!(sh, "git clone --depth=1 https://github.com/rust-lang/rust").run()?;
89+
cmd!(
90+
sh,
91+
"git clone --depth=1 --branch 1.76.0 https://github.com/rust-lang/rust.git --single-branch"
92+
)
93+
.run()?;
9094

9195
let output = cmd!(sh, "./target/release/rust-analyzer rustc-tests ./rust").read()?;
9296
for (metric, value, unit) in parse_metrics(&output) {

0 commit comments

Comments
 (0)