@@ -1085,7 +1085,7 @@ mod snapshot {
1085
1085
[dist] rustc <host>
1086
1086
[dist] rustc 1 <host> -> std 1 <host>
1087
1087
[dist] src <>
1088
- [build] rustc 0 <host> -> cargo 1 <host>
1088
+ [build] rustc 1 <host> -> cargo 2 <host>
1089
1089
[build] rustc 1 <host> -> rust-analyzer 2 <host>
1090
1090
[build] rustc 1 <host> -> rustfmt 2 <host>
1091
1091
[build] rustc 1 <host> -> cargo-fmt 2 <host>
@@ -1278,7 +1278,7 @@ mod snapshot {
1278
1278
[dist] rustc <target1>
1279
1279
[dist] rustc 1 <host> -> std 1 <target1>
1280
1280
[dist] src <>
1281
- [build] rustc 0 <host> -> cargo 1 <target1>
1281
+ [build] rustc 1 <host> -> cargo 2 <target1>
1282
1282
[build] rustc 1 <host> -> rust-analyzer 2 <target1>
1283
1283
[build] rustc 1 <host> -> rustfmt 2 <target1>
1284
1284
[build] rustc 1 <host> -> cargo-fmt 2 <target1>
@@ -1599,6 +1599,39 @@ mod snapshot {
1599
1599
steps. assert_contains_fuzzy ( StepMetadata :: build ( "rustc" , host) ) ;
1600
1600
}
1601
1601
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
+
1602
1635
#[ test]
1603
1636
fn test_cargotest ( ) {
1604
1637
let ctx = TestCtx :: new ( ) ;
0 commit comments