@@ -706,7 +706,6 @@ impl Step for Miri {
706706
707707#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
708708pub struct CompiletestTest {
709- stage : u32 ,
710709 host : TargetSelection ,
711710}
712711
@@ -718,14 +717,13 @@ impl Step for CompiletestTest {
718717 }
719718
720719 fn make_run ( run : RunConfig < ' _ > ) {
721- run. builder . ensure ( CompiletestTest { stage : run . builder . top_stage , host : run. target } ) ;
720+ run. builder . ensure ( CompiletestTest { host : run. target } ) ;
722721 }
723722
724723 /// Runs `cargo test` for compiletest.
725724 fn run ( self , builder : & Builder < ' _ > ) {
726725 let host = self . host ;
727- let stage = self . stage ;
728- let compiler = builder. compiler ( stage, host) ;
726+ let compiler = builder. compiler ( builder. top_stage , host) ;
729727
730728 // We need `ToolStd` for the locally-built sysroot because
731729 // compiletest uses unstable features of the `test` crate.
@@ -741,7 +739,7 @@ impl Step for CompiletestTest {
741739 & [ ] ,
742740 ) ;
743741 cargo. allow_features ( "test" ) ;
744- cargo. env ( "RUSTC_STAGE" , stage . to_string ( ) ) ;
742+ cargo. env ( "RUSTC_STAGE" , builder . top_stage . to_string ( ) ) ;
745743 run_cargo_test ( cargo, & [ ] , & [ ] , "compiletest" , compiler, host, builder) ;
746744 }
747745}
0 commit comments