@@ -1221,7 +1221,7 @@ impl Step for Clippy {
12211221 let tmp = tmpdir ( builder) ;
12221222 let image = tmp. join ( "clippy-image" ) ;
12231223 drop ( fs:: remove_dir_all ( & image) ) ;
1224- t ! ( fs :: create_dir_all ( & image) ) ;
1224+ builder . create_dir ( & image) ;
12251225
12261226 // Prepare the image directory
12271227 // We expect clippy to build, because we've exited this step above if tool
@@ -1230,8 +1230,13 @@ impl Step for Clippy {
12301230 compiler : builder. compiler ( stage, builder. config . build ) ,
12311231 target, extra_features : Vec :: new ( )
12321232 } ) . 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 } ) ?;
12331237
12341238 builder. install ( & clippy, & image. join ( "bin" ) , 0o755 ) ;
1239+ builder. install ( & cargoclippy, & image. join ( "bin" ) , 0o755 ) ;
12351240 let doc = image. join ( "share/doc/clippy" ) ;
12361241 builder. install ( & src. join ( "README.md" ) , & doc, 0o644 ) ;
12371242 builder. install ( & src. join ( "LICENSE" ) , & doc, 0o644 ) ;
0 commit comments