@@ -1133,8 +1133,7 @@ mod snapshot {
1133
1133
[dist] mingw <host>
1134
1134
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
1135
1135
[dist] rustc <host>
1136
- [build] rustc 2 <host> -> std 2 <host>
1137
- [dist] rustc 2 <host> -> std 2 <host>
1136
+ [dist] rustc 1 <host> -> std 1 <host>
1138
1137
[dist] rustc 1 <host> -> rustc-dev 2 <host>
1139
1138
[dist] src <>
1140
1139
[dist] reproducible-artifacts <host>
@@ -1198,8 +1197,7 @@ mod snapshot {
1198
1197
[build] rustc 1 <host> -> rust-analyzer-proc-macro-srv 2 <host>
1199
1198
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
1200
1199
[dist] rustc <host>
1201
- [build] rustc 2 <host> -> std 2 <host>
1202
- [dist] rustc 2 <host> -> std 2 <host>
1200
+ [dist] rustc 1 <host> -> std 1 <host>
1203
1201
[dist] rustc 1 <host> -> rustc-dev 2 <host>
1204
1202
[dist] rustc 1 <host> -> analysis 2 <host>
1205
1203
[dist] src <>
@@ -1216,7 +1214,6 @@ mod snapshot {
1216
1214
[build] rustc 1 <host> -> miri 2 <host>
1217
1215
[build] rustc 1 <host> -> cargo-miri 2 <host>
1218
1216
[dist] rustc 1 <host> -> miri 2 <host>
1219
- [dist] rustc 1 <host> -> std 1 <host>
1220
1217
[dist] rustc 1 <host> -> extended 2 <host>
1221
1218
[dist] reproducible-artifacts <host>
1222
1219
" ) ;
@@ -1287,8 +1284,7 @@ mod snapshot {
1287
1284
[dist] mingw <target1>
1288
1285
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
1289
1286
[dist] rustc <host>
1290
- [build] rustc 2 <host> -> std 2 <host>
1291
- [dist] rustc 2 <host> -> std 2 <host>
1287
+ [dist] rustc 1 <host> -> std 1 <host>
1292
1288
[build] rustc 2 <host> -> std 2 <target1>
1293
1289
[dist] rustc 2 <host> -> std 2 <target1>
1294
1290
[dist] rustc 1 <host> -> rustc-dev 2 <host>
@@ -1350,8 +1346,7 @@ mod snapshot {
1350
1346
[dist] rustc <host>
1351
1347
[build] rustdoc 2 <target1>
1352
1348
[dist] rustc <target1>
1353
- [build] rustc 2 <host> -> std 2 <host>
1354
- [dist] rustc 2 <host> -> std 2 <host>
1349
+ [dist] rustc 1 <host> -> std 1 <host>
1355
1350
[dist] rustc 1 <host> -> rustc-dev 2 <host>
1356
1351
[dist] rustc 1 <host> -> rustc-dev 2 <target1>
1357
1352
[dist] src <>
@@ -1433,10 +1428,8 @@ mod snapshot {
1433
1428
[dist] rustc <host>
1434
1429
[build] rustdoc 2 <target1>
1435
1430
[dist] rustc <target1>
1436
- [build] rustc 2 <host> -> std 2 <host>
1437
- [dist] rustc 2 <host> -> std 2 <host>
1438
- [build] rustc 2 <host> -> std 2 <target1>
1439
- [dist] rustc 2 <host> -> std 2 <target1>
1431
+ [dist] rustc 1 <host> -> std 1 <host>
1432
+ [dist] rustc 1 <host> -> std 1 <target1>
1440
1433
[dist] rustc 1 <host> -> rustc-dev 2 <host>
1441
1434
[dist] rustc 1 <host> -> rustc-dev 2 <target1>
1442
1435
[dist] src <>
@@ -1490,8 +1483,6 @@ mod snapshot {
1490
1483
" ) ;
1491
1484
}
1492
1485
1493
- /// This also serves as an important regression test for <https://github.com/rust-lang/rust/issues/138123>
1494
- /// and <https://github.com/rust-lang/rust/issues/138004>.
1495
1486
#[ test]
1496
1487
fn dist_all_cross_extended ( ) {
1497
1488
let ctx = TestCtx :: new ( ) ;
@@ -1545,8 +1536,7 @@ mod snapshot {
1545
1536
[build] rustc 1 <host> -> rust-analyzer-proc-macro-srv 2 <target1>
1546
1537
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
1547
1538
[dist] rustc <target1>
1548
- [build] rustc 2 <host> -> std 2 <target1>
1549
- [dist] rustc 2 <host> -> std 2 <target1>
1539
+ [dist] rustc 1 <host> -> std 1 <target1>
1550
1540
[dist] rustc 1 <host> -> rustc-dev 2 <target1>
1551
1541
[dist] rustc 1 <host> -> analysis 2 <target1>
1552
1542
[dist] src <>
@@ -1564,7 +1554,6 @@ mod snapshot {
1564
1554
[build] rustc 1 <host> -> cargo-miri 2 <target1>
1565
1555
[dist] rustc 1 <host> -> miri 2 <target1>
1566
1556
[build] rustc 1 <host> -> LlvmBitcodeLinker 2 <target1>
1567
- [dist] rustc 1 <host> -> std 1 <target1>
1568
1557
[doc] rustc 2 <target1> -> std 2 <target1> crates=[]
1569
1558
[dist] rustc 1 <host> -> extended 2 <target1>
1570
1559
[dist] reproducible-artifacts <target1>
@@ -1573,6 +1562,9 @@ mod snapshot {
1573
1562
1574
1563
/// Simulates e.g. the powerpc64 builder, which is fully cross-compiled from x64, but it does
1575
1564
/// not build docs. Crutically, it shouldn't build host stage 2 rustc.
1565
+ ///
1566
+ /// This is a regression test for <https://github.com/rust-lang/rust/issues/138123>
1567
+ /// and <https://github.com/rust-lang/rust/issues/138004>.
1576
1568
#[ test]
1577
1569
fn dist_all_cross_extended_no_docs ( ) {
1578
1570
let ctx = TestCtx :: new ( ) ;
@@ -1591,11 +1583,11 @@ mod snapshot {
1591
1583
. get_steps ( ) ;
1592
1584
1593
1585
// Make sure that we don't build stage2 host rustc
1594
- // steps.assert_no_match(|m| {
1595
- // m.name == "rustc"
1596
- // && m.built_by.map(|b| b.stage) == Some(1)
1597
- // && *m.target.triple == host_target()
1598
- // });
1586
+ steps. assert_no_match ( |m| {
1587
+ m. name == "rustc"
1588
+ && m. built_by . map ( |b| b. stage ) == Some ( 1 )
1589
+ && * m. target . triple == host_target ( )
1590
+ } ) ;
1599
1591
1600
1592
insta:: assert_snapshot!(
1601
1593
steps. render( ) , @r"
@@ -1613,10 +1605,7 @@ mod snapshot {
1613
1605
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
1614
1606
[build] rustc 0 <host> -> RustInstaller 1 <host>
1615
1607
[dist] rustc <target1>
1616
- [build] rustc 1 <host> -> rustc 2 <host>
1617
- [build] rustc 1 <host> -> WasmComponentLd 2 <host>
1618
- [build] rustc 2 <host> -> std 2 <target1>
1619
- [dist] rustc 2 <host> -> std 2 <target1>
1608
+ [dist] rustc 1 <host> -> std 1 <target1>
1620
1609
[dist] rustc 1 <host> -> rustc-dev 2 <target1>
1621
1610
[dist] rustc 1 <host> -> analysis 2 <target1>
1622
1611
[dist] src <>
@@ -1634,7 +1623,6 @@ mod snapshot {
1634
1623
[build] rustc 1 <host> -> cargo-miri 2 <target1>
1635
1624
[dist] rustc 1 <host> -> miri 2 <target1>
1636
1625
[build] rustc 1 <host> -> LlvmBitcodeLinker 2 <target1>
1637
- [dist] rustc 1 <host> -> std 1 <target1>
1638
1626
[dist] rustc 1 <host> -> extended 2 <target1>
1639
1627
[dist] reproducible-artifacts <target1>
1640
1628
" ) ;
@@ -1688,8 +1676,7 @@ mod snapshot {
1688
1676
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
1689
1677
[dist] rustc <host>
1690
1678
[dist] rustc 1 <host> -> rustc_codegen_cranelift 2 <host>
1691
- [build] rustc 2 <host> -> std 2 <host>
1692
- [dist] rustc 2 <host> -> std 2 <host>
1679
+ [dist] rustc 1 <host> -> std 1 <host>
1693
1680
[dist] rustc 1 <host> -> rustc-dev 2 <host>
1694
1681
[dist] src <>
1695
1682
[dist] reproducible-artifacts <host>
@@ -2420,8 +2407,7 @@ mod snapshot {
2420
2407
[doc] rustc 1 <host> -> releases 2 <host>
2421
2408
[build] rustc 0 <host> -> RustInstaller 1 <host>
2422
2409
[dist] docs <host>
2423
- [build] rustc 2 <host> -> std 2 <host>
2424
- [dist] rustc 2 <host> -> std 2 <host>
2410
+ [dist] rustc 1 <host> -> std 1 <host>
2425
2411
[build] rustc 1 <host> -> rust-analyzer-proc-macro-srv 2 <host>
2426
2412
[build] rustc 0 <host> -> GenerateCopyright 1 <host>
2427
2413
[dist] rustc <host>
0 commit comments