From 27b06367450c8e48fa58d99ab1792817519b555a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Wed, 17 Jan 2024 19:16:32 +0200 Subject: [PATCH] Fix sysroot metadata in metrics --- xtask/src/metrics.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs index db4e1b3582..c05874a0cc 100644 --- a/xtask/src/metrics.rs +++ b/xtask/src/metrics.rs @@ -117,6 +117,8 @@ 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());