Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/metrics.rs')
-rw-r--r--xtask/src/metrics.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs
index 9bd3a661c2..285abb9efc 100644
--- a/xtask/src/metrics.rs
+++ b/xtask/src/metrics.rs
@@ -86,7 +86,11 @@ impl Metrics {
fn measure_rustc_tests(&mut self, sh: &Shell) -> anyhow::Result<()> {
eprintln!("\nMeasuring rustc tests");
- cmd!(sh, "git clone --depth=1 https://github.com/rust-lang/rust").run()?;
+ cmd!(
+ sh,
+ "git clone --depth=1 --branch 1.76.0 https://github.com/rust-lang/rust.git --single-branch"
+ )
+ .run()?;
let output = cmd!(sh, "./target/release/rust-analyzer rustc-tests ./rust").read()?;
for (metric, value, unit) in parse_metrics(&output) {
@@ -117,8 +121,6 @@ impl Metrics {
sh,
"./target/release/rust-analyzer -q analysis-stats {path} --query-sysroot-metadata"
)
- // the sysroot uses `public-dependency`, so we make cargo think it's a nightly
- .env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "nightly")
.read()?;
for (metric, value, unit) in parse_metrics(&output) {
self.report(&format!("analysis-stats/{name}/{metric}"), value, unit.into());