bootstrap: Pass --features=rustc to rustc_transmute

This matters for `x test rustc_transmute`, where the feature won't
automatically be enabled and as a result spew a bunch of warnings.
This commit is contained in:
Jynn Nelson
2026-03-19 17:58:45 +01:00
parent fd0c901b00
commit f9752e2074
+6
View File
@@ -883,6 +883,12 @@ fn rustc_features(&self, kind: Kind, target: TargetSelection, crates: &[String])
features.push("check_only");
}
if crates.iter().any(|c| c == "rustc_transmute") {
// for `x test rustc_transmute`, this feature isn't enabled automatically by a
// dependent crate.
features.push("rustc");
}
// If debug logging is on, then we want the default for tracing:
// https://github.com/tokio-rs/tracing/blob/3dd5c03d907afdf2c39444a29931833335171554/tracing/src/level_filters.rs#L26
// which is everything (including debug/trace/etc.)