@@ -45,18 +45,6 @@ fn main() {
4545 }
4646 }
4747
48- // Drop `--error-format json` because despite our desire for json messages
49- // from Cargo we don't want any from rustc itself.
50- if let Some ( n) = args. iter ( ) . position ( |n| n == "--error-format" ) {
51- args. remove ( n) ;
52- args. remove ( n) ;
53- }
54-
55- if let Some ( s) = env:: var_os ( "RUSTC_ERROR_FORMAT" ) {
56- args. push ( "--error-format" . into ( ) ) ;
57- args. push ( s) ;
58- }
59-
6048 // Detect whether or not we're a build script depending on whether --target
6149 // is passed (a bit janky...)
6250 let target = args. windows ( 2 )
@@ -110,7 +98,11 @@ fn main() {
11098
11199 // Non-zero stages must all be treated uniformly to avoid problems when attempting to uplift
112100 // compiler libraries and such from stage 1 to 2.
113- if stage == "0" {
101+ //
102+ // FIXME: the fact that core here is excluded is due to core_arch from our stdarch submodule
103+ // being broken on the beta compiler with bootstrap passed, so this is a temporary workaround
104+ // (we've just snapped, so there are no cfg(bootstrap) related annotations in core).
105+ if stage == "0" && crate_name != Some ( "core" ) {
114106 cmd. arg ( "--cfg" ) . arg ( "bootstrap" ) ;
115107 }
116108
@@ -132,10 +124,7 @@ fn main() {
132124 cmd. arg ( "-Dwarnings" ) ;
133125 cmd. arg ( "-Drust_2018_idioms" ) ;
134126 cmd. arg ( "-Dunused_lifetimes" ) ;
135- // cfg(not(bootstrap)): Remove this during the next stage 0 compiler update.
136- // `-Drustc::internal` is a new feature and `rustc_version` mis-reports the `stage`.
137- let cfg_not_bootstrap = stage != "0" && crate_name != Some ( "rustc_version" ) ;
138- if cfg_not_bootstrap && use_internal_lints ( crate_name) {
127+ if use_internal_lints ( crate_name) {
139128 cmd. arg ( "-Zunstable-options" ) ;
140129 cmd. arg ( "-Drustc::internal" ) ;
141130 }
0 commit comments