Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #16387 - lnicola:metrics-sysroot, r=Veykril
internal: Fix sysroot metadata in metrics CC https://github.com/rust-lang/rust-analyzer/pull/16380#issuecomment-1895550254
bors 2024-01-18
parent 5b62ebc · parent 27b0636 · commit a19372f
-rw-r--r--xtask/src/metrics.rs2
1 files changed, 2 insertions, 0 deletions
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());