@@ -45,18 +45,6 @@ fn main() {
45
45
}
46
46
}
47
47
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
-
60
48
// Detect whether or not we're a build script depending on whether --target
61
49
// is passed (a bit janky...)
62
50
let target = args. windows ( 2 )
@@ -110,7 +98,11 @@ fn main() {
110
98
111
99
// Non-zero stages must all be treated uniformly to avoid problems when attempting to uplift
112
100
// 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" ) {
114
106
cmd. arg ( "--cfg" ) . arg ( "bootstrap" ) ;
115
107
}
116
108
@@ -132,10 +124,7 @@ fn main() {
132
124
cmd. arg ( "-Dwarnings" ) ;
133
125
cmd. arg ( "-Drust_2018_idioms" ) ;
134
126
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) {
139
128
cmd. arg ( "-Zunstable-options" ) ;
140
129
cmd. arg ( "-Drustc::internal" ) ;
141
130
}
0 commit comments