@@ -1221,7 +1221,7 @@ impl Step for Clippy {
1221
1221
let tmp = tmpdir ( builder) ;
1222
1222
let image = tmp. join ( "clippy-image" ) ;
1223
1223
drop ( fs:: remove_dir_all ( & image) ) ;
1224
- t ! ( fs :: create_dir_all ( & image) ) ;
1224
+ builder . create_dir ( & image) ;
1225
1225
1226
1226
// Prepare the image directory
1227
1227
// We expect clippy to build, because we've exited this step above if tool
@@ -1230,8 +1230,13 @@ impl Step for Clippy {
1230
1230
compiler : builder. compiler ( stage, builder. config . build ) ,
1231
1231
target, extra_features : Vec :: new ( )
1232
1232
} ) . or_else ( || { println ! ( "Unable to build clippy, skipping dist" ) ; None } ) ?;
1233
+ let cargoclippy = builder. ensure ( tool:: CargoClippy {
1234
+ compiler : builder. compiler ( stage, builder. config . build ) ,
1235
+ target, extra_features : Vec :: new ( )
1236
+ } ) . or_else ( || { println ! ( "Unable to build cargo clippy, skipping dist" ) ; None } ) ?;
1233
1237
1234
1238
builder. install ( & clippy, & image. join ( "bin" ) , 0o755 ) ;
1239
+ builder. install ( & cargoclippy, & image. join ( "bin" ) , 0o755 ) ;
1235
1240
let doc = image. join ( "share/doc/clippy" ) ;
1236
1241
builder. install ( & src. join ( "README.md" ) , & doc, 0o644 ) ;
1237
1242
builder. install ( & src. join ( "LICENSE" ) , & doc, 0o644 ) ;
0 commit comments