Skip to content

Commit a19372f

Browse files
committed
Auto merge of #16387 - lnicola:metrics-sysroot, r=Veykril
internal: Fix sysroot metadata in metrics CC rust-lang/rust-analyzer#16380 (comment)
2 parents 5b62ebc + 27b0636 commit a19372f

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)