mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-03 01:16:14 +03:00
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:
@@ -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.)
|
||||
|
||||
Reference in New Issue
Block a user