We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b11757e commit 36a5aa8Copy full SHA for 36a5aa8
src/bootstrap/bin/rustc.rs
@@ -128,8 +128,10 @@ fn main() {
128
env::var_os("RUSTC_EXTERNAL_TOOL").is_none() {
129
cmd.arg("-Dwarnings");
130
cmd.arg("-Drust_2018_idioms");
131
- if stage != "0" && crate_name != Some("rustc_version") && // cfg(not(bootstrap))
132
- use_internal_lints(crate_name) {
+ // cfg(not(bootstrap)): Remove this during the next stage 0 compiler update.
+ // `-Drustc::internal` is a new feature and `rustc_version` mis-reports the `stage`.
133
+ let cfg_not_bootstrap = stage != "0" && crate_name != Some("rustc_version");
134
+ if cfg_not_bootstrap && use_internal_lints(crate_name) {
135
cmd.arg("-Zunstable-options");
136
cmd.arg("-Drustc::internal");
137
}
0 commit comments