File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Top Open diff view settings Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Top Open diff view settings Original file line number Diff line number Diff line change @@ -128,8 +128,10 @@ fn main() {
128
128
env:: var_os ( "RUSTC_EXTERNAL_TOOL" ) . is_none ( ) {
129
129
cmd. arg ( "-Dwarnings" ) ;
130
130
cmd. arg ( "-Drust_2018_idioms" ) ;
131
- if stage != "0" && crate_name != Some ( "rustc_version" ) && // cfg(not(bootstrap))
132
- use_internal_lints ( crate_name) {
131
+ // cfg(not(bootstrap)): Remove this during the next stage 0 compiler update.
132
+ // `-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) {
133
135
cmd. arg ( "-Zunstable-options" ) ;
134
136
cmd. arg ( "-Drustc::internal" ) ;
135
137
}
You can’t perform that action at this time.
0 commit comments