File tree 1 file changed +10
-0
lines changed
src/bootstrap/src/core/build_steps
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,11 @@ impl Step for Cargo {
298
298
299
299
/// Runs `cargo test` for `cargo` packaged with Rust.
300
300
fn run ( self , builder : & Builder < ' _ > ) {
301
+ if self . stage < 2 {
302
+ eprintln ! ( "WARNING: cargo tests on stage {} may not behave well." , self . stage) ;
303
+ eprintln ! ( "HELP: consider using stage 2" ) ;
304
+ }
305
+
301
306
let compiler = builder. compiler ( self . stage , self . host ) ;
302
307
303
308
let cargo = builder. ensure ( tool:: Cargo { compiler, target : self . host } ) ;
@@ -743,6 +748,11 @@ impl Step for Clippy {
743
748
let host = self . host ;
744
749
let compiler = builder. compiler ( stage, host) ;
745
750
751
+ if stage < 2 {
752
+ eprintln ! ( "WARNING: clippy tests on stage {stage} may not behave well." ) ;
753
+ eprintln ! ( "HELP: consider using stage 2" ) ;
754
+ }
755
+
746
756
let tool_result = builder. ensure ( tool:: Clippy { compiler, target : self . host } ) ;
747
757
let compiler = tool_result. build_compiler ;
748
758
let mut cargo = tool:: prepare_tool_cargo (
You can’t perform that action at this time.
0 commit comments