Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 27b0636

Browse files
committed
Fix sysroot metadata in metrics
1 parent 5b62ebc commit 27b0636

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xtask/src/metrics.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ impl Metrics {
117117
sh,
118118
"./target/release/rust-analyzer -q analysis-stats {path} --query-sysroot-metadata"
119119
)
120+
// the sysroot uses `public-dependency`, so we make cargo think it's a nightly
121+
.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "nightly")
120122
.read()?;
121123
for (metric, value, unit) in parse_metrics(&output) {
122124
self.report(&format!("analysis-stats/{name}/{metric}"), value, unit.into());

0 commit comments

Comments
 (0)