@@ -652,20 +652,6 @@ mod dist {
652652 & [ "compiler/rustc" . into ( ) , "library" . into ( ) ] ,
653653 ) ;
654654
655- assert_eq ! ( builder. config. stage, 2 ) ;
656-
657- // `compile::Rustc` includes one-stage-off compiler information as the target compiler
658- // artifacts get copied from there to the target stage sysroot.
659- // For example, `stage2/bin/rustc` gets copied from the `stage1-rustc` build directory.
660- assert_eq ! (
661- first( builder. cache. all:: <compile:: Rustc >( ) ) ,
662- & [
663- rustc!( TEST_TRIPLE_1 => TEST_TRIPLE_1 , stage = 0 ) ,
664- rustc!( TEST_TRIPLE_1 => TEST_TRIPLE_1 , stage = 1 ) ,
665- rustc!( TEST_TRIPLE_1 => TEST_TRIPLE_2 , stage = 1 ) ,
666- ]
667- ) ;
668-
669655 assert_eq ! (
670656 first( builder. cache. all:: <compile:: Std >( ) ) ,
671657 & [
@@ -677,22 +663,15 @@ mod dist {
677663 std!( TEST_TRIPLE_1 => TEST_TRIPLE_3 , stage = 2 ) ,
678664 ]
679665 ) ;
680-
666+ assert_eq ! ( builder . cache . all :: <compile :: Assemble > ( ) . len ( ) , 5 ) ;
681667 assert_eq ! (
682- first( builder. cache. all:: <compile:: Assemble >( ) ) ,
668+ first( builder. cache. all:: <compile:: Rustc >( ) ) ,
683669 & [
684- compile:: Assemble {
685- target_compiler: Compiler :: new( 0 , TargetSelection :: from_user( TEST_TRIPLE_1 ) , )
686- } ,
687- compile:: Assemble {
688- target_compiler: Compiler :: new( 1 , TargetSelection :: from_user( TEST_TRIPLE_1 ) , )
689- } ,
690- compile:: Assemble {
691- target_compiler: Compiler :: new( 2 , TargetSelection :: from_user( TEST_TRIPLE_1 ) , )
692- } ,
693- compile:: Assemble {
694- target_compiler: Compiler :: new( 2 , TargetSelection :: from_user( TEST_TRIPLE_2 ) , )
695- } ,
670+ rustc!( TEST_TRIPLE_1 => TEST_TRIPLE_1 , stage = 0 ) ,
671+ rustc!( TEST_TRIPLE_1 => TEST_TRIPLE_1 , stage = 1 ) ,
672+ rustc!( TEST_TRIPLE_1 => TEST_TRIPLE_1 , stage = 2 ) ,
673+ rustc!( TEST_TRIPLE_1 => TEST_TRIPLE_2 , stage = 1 ) ,
674+ rustc!( TEST_TRIPLE_1 => TEST_TRIPLE_2 , stage = 2 ) ,
696675 ]
697676 ) ;
698677 }
0 commit comments