@@ -270,7 +270,7 @@ impl Step for Rls {
270
270
& [ ] ,
271
271
) ;
272
272
273
- builder . add_rustc_lib_path ( compiler , & mut cargo ) ;
273
+ cargo . add_rustc_lib_path ( builder , compiler ) ;
274
274
cargo. arg ( "--" ) . args ( builder. config . cmd . test_args ( ) ) ;
275
275
276
276
if try_run ( builder, & mut cargo. into ( ) ) {
@@ -328,7 +328,7 @@ impl Step for Rustfmt {
328
328
t ! ( fs:: create_dir_all( & dir) ) ;
329
329
cargo. env ( "RUSTFMT_TEST_DIR" , dir) ;
330
330
331
- builder . add_rustc_lib_path ( compiler , & mut cargo ) ;
331
+ cargo . add_rustc_lib_path ( builder , compiler ) ;
332
332
333
333
if try_run ( builder, & mut cargo. into ( ) ) {
334
334
builder. save_toolstate ( "rustfmt" , ToolState :: TestPass ) ;
@@ -449,7 +449,7 @@ impl Step for Miri {
449
449
450
450
cargo. arg ( "--" ) . args ( builder. config . cmd . test_args ( ) ) ;
451
451
452
- builder . add_rustc_lib_path ( compiler , & mut cargo ) ;
452
+ cargo . add_rustc_lib_path ( builder , compiler ) ;
453
453
454
454
if !try_run ( builder, & mut cargo. into ( ) ) {
455
455
return ;
@@ -554,7 +554,7 @@ impl Step for Clippy {
554
554
555
555
cargo. arg ( "--" ) . args ( builder. config . cmd . test_args ( ) ) ;
556
556
557
- builder . add_rustc_lib_path ( compiler , & mut cargo ) ;
557
+ cargo . add_rustc_lib_path ( builder , compiler ) ;
558
558
559
559
builder. run ( & mut cargo. into ( ) ) ;
560
560
}
0 commit comments