@@ -1085,7 +1085,7 @@ mod snapshot {
10851085 [dist] rustc <host>
10861086 [dist] rustc 1 <host> -> std 1 <host>
10871087 [dist] src <>
1088- [build] rustc 0 <host> -> cargo 1 <host>
1088+ [build] rustc 1 <host> -> cargo 2 <host>
10891089 [build] rustc 1 <host> -> rust-analyzer 2 <host>
10901090 [build] rustc 1 <host> -> rustfmt 2 <host>
10911091 [build] rustc 1 <host> -> cargo-fmt 2 <host>
@@ -1278,7 +1278,7 @@ mod snapshot {
12781278 [dist] rustc <target1>
12791279 [dist] rustc 1 <host> -> std 1 <target1>
12801280 [dist] src <>
1281- [build] rustc 0 <host> -> cargo 1 <target1>
1281+ [build] rustc 1 <host> -> cargo 2 <target1>
12821282 [build] rustc 1 <host> -> rust-analyzer 2 <target1>
12831283 [build] rustc 1 <host> -> rustfmt 2 <target1>
12841284 [build] rustc 1 <host> -> cargo-fmt 2 <target1>
@@ -1599,6 +1599,39 @@ mod snapshot {
15991599 steps. assert_contains_fuzzy ( StepMetadata :: build ( "rustc" , host) ) ;
16001600 }
16011601
1602+ #[ test]
1603+ fn test_cargo_stage_1 ( ) {
1604+ let ctx = TestCtx :: new ( ) ;
1605+ insta:: assert_snapshot!(
1606+ ctx. config( "test" )
1607+ . path( "cargo" )
1608+ . render_steps( ) , @r"
1609+ [build] llvm <host>
1610+ [build] rustc 0 <host> -> rustc 1 <host>
1611+ [build] rustc 1 <host> -> std 1 <host>
1612+ [build] rustc 1 <host> -> rustc 2 <host>
1613+ [build] rustc 2 <host> -> cargo 3 <host>
1614+ [build] rustdoc 2 <host>
1615+ " ) ;
1616+ }
1617+
1618+ #[ test]
1619+ fn test_cargo_stage_2 ( ) {
1620+ let ctx = TestCtx :: new ( ) ;
1621+ insta:: assert_snapshot!(
1622+ ctx. config( "test" )
1623+ . path( "cargo" )
1624+ . stage( 2 )
1625+ . render_steps( ) , @r"
1626+ [build] llvm <host>
1627+ [build] rustc 0 <host> -> rustc 1 <host>
1628+ [build] rustc 1 <host> -> std 1 <host>
1629+ [build] rustc 1 <host> -> rustc 2 <host>
1630+ [build] rustc 2 <host> -> cargo 3 <host>
1631+ [build] rustdoc 2 <host>
1632+ " ) ;
1633+ }
1634+
16021635 #[ test]
16031636 fn test_cargotest ( ) {
16041637 let ctx = TestCtx :: new ( ) ;
0 commit comments