@@ -1159,8 +1159,6 @@ impl Step for Rustfmt {
1159
1159
t ! ( fs:: create_dir_all( & image) ) ;
1160
1160
1161
1161
// Prepare the image directory
1162
- // We expect RLS to build, because we've exited this step above if tool
1163
- // state for RLS isn't testing.
1164
1162
let rustfmt = builder. ensure ( tool:: Rustfmt {
1165
1163
compiler : builder. compiler ( stage, build. build ) ,
1166
1164
target
@@ -1262,6 +1260,7 @@ impl Step for Extended {
1262
1260
compiler : builder. compiler ( stage, target) ,
1263
1261
} ) ;
1264
1262
let cargo_installer = builder. ensure ( Cargo { stage, target } ) ;
1263
+ let rustfmt_installer = builder. ensure ( Rustfmt { stage, target } ) ;
1265
1264
let rls_installer = builder. ensure ( Rls { stage, target } ) ;
1266
1265
let mingw_installer = builder. ensure ( Mingw { host : target } ) ;
1267
1266
let analysis_installer = builder. ensure ( Analysis {
@@ -1299,6 +1298,7 @@ impl Step for Extended {
1299
1298
tarballs. push ( rustc_installer) ;
1300
1299
tarballs. push ( cargo_installer) ;
1301
1300
tarballs. extend ( rls_installer. clone ( ) ) ;
1301
+ tarballs. extend ( rustfmt_installer. clone ( ) ) ;
1302
1302
tarballs. push ( analysis_installer) ;
1303
1303
tarballs. push ( std_installer) ;
1304
1304
if build. config . docs {
@@ -1366,6 +1366,9 @@ impl Step for Extended {
1366
1366
if rls_installer. is_none ( ) {
1367
1367
contents = filter ( & contents, "rls" ) ;
1368
1368
}
1369
+ if rustfmt_installer. is_none ( ) {
1370
+ contents = filter ( & contents, "rustfmt" ) ;
1371
+ }
1369
1372
let ret = tmp. join ( p. file_name ( ) . unwrap ( ) ) ;
1370
1373
t ! ( t!( File :: create( & ret) ) . write_all( contents. as_bytes( ) ) ) ;
1371
1374
return ret
0 commit comments