@@ -1345,7 +1345,15 @@ impl Step for Extended {
1345
1345
1346
1346
builder. info ( & format ! ( "Dist extended stage{} ({})" , compiler. stage, target) ) ;
1347
1347
1348
- let rustc_installer = builder. ensure ( Rustc { compiler : builder. compiler ( stage, target) } ) ;
1348
+ let mut tarballs = Vec :: new ( ) ;
1349
+
1350
+ // When rust-std package split from rustc, we needed to ensure that during
1351
+ // upgrades rustc was upgraded before rust-std. To avoid rustc clobbering
1352
+ // the std files during uninstall. To do this ensure that rustc comes
1353
+ // before rust-std in the list below.
1354
+ tarballs. push ( builder. ensure ( Rustc { compiler : builder. compiler ( stage, target) } ) ) ;
1355
+ tarballs. push ( builder. ensure ( Std { compiler, target } ) . expect ( "missing std" ) ) ;
1356
+
1349
1357
let cargo_installer = builder. ensure ( Cargo { compiler, target } ) ;
1350
1358
let rustfmt_installer = builder. ensure ( Rustfmt { compiler, target } ) ;
1351
1359
let rust_demangler_installer = builder. ensure ( RustDemangler { compiler, target } ) ;
@@ -1358,7 +1366,6 @@ impl Step for Extended {
1358
1366
let analysis_installer = builder. ensure ( Analysis { compiler, target } ) ;
1359
1367
1360
1368
let docs_installer = builder. ensure ( Docs { host : target } ) ;
1361
- let std_installer = builder. ensure ( Std { compiler, target } ) ;
1362
1369
1363
1370
let etc = builder. src . join ( "src/etc/installer" ) ;
1364
1371
@@ -1367,12 +1374,6 @@ impl Step for Extended {
1367
1374
return ;
1368
1375
}
1369
1376
1370
- // When rust-std package split from rustc, we needed to ensure that during
1371
- // upgrades rustc was upgraded before rust-std. To avoid rustc clobbering
1372
- // the std files during uninstall. To do this ensure that rustc comes
1373
- // before rust-std in the list below.
1374
- let mut tarballs = Vec :: new ( ) ;
1375
- tarballs. push ( rustc_installer) ;
1376
1377
tarballs. push ( cargo_installer) ;
1377
1378
tarballs. push ( clippy_installer) ;
1378
1379
tarballs. extend ( rust_demangler_installer. clone ( ) ) ;
@@ -1384,7 +1385,6 @@ impl Step for Extended {
1384
1385
if let Some ( analysis_installer) = analysis_installer {
1385
1386
tarballs. push ( analysis_installer) ;
1386
1387
}
1387
- tarballs. push ( std_installer. expect ( "missing std" ) ) ;
1388
1388
if let Some ( docs_installer) = docs_installer {
1389
1389
tarballs. push ( docs_installer) ;
1390
1390
}
0 commit comments