@@ -270,7 +270,7 @@ impl Step for Rls {
270270            & [ ] , 
271271        ) ; 
272272
273-         builder . add_rustc_lib_path ( compiler ,   & mut  cargo ) ; 
273+         cargo . add_rustc_lib_path ( builder ,  compiler ) ; 
274274        cargo. arg ( "--" ) . args ( builder. config . cmd . test_args ( ) ) ; 
275275
276276        if  try_run ( builder,  & mut  cargo. into ( ) )  { 
@@ -328,7 +328,7 @@ impl Step for Rustfmt {
328328        t ! ( fs:: create_dir_all( & dir) ) ; 
329329        cargo. env ( "RUSTFMT_TEST_DIR" ,  dir) ; 
330330
331-         builder . add_rustc_lib_path ( compiler ,   & mut  cargo ) ; 
331+         cargo . add_rustc_lib_path ( builder ,  compiler ) ; 
332332
333333        if  try_run ( builder,  & mut  cargo. into ( ) )  { 
334334            builder. save_toolstate ( "rustfmt" ,  ToolState :: TestPass ) ; 
@@ -449,7 +449,7 @@ impl Step for Miri {
449449
450450            cargo. arg ( "--" ) . args ( builder. config . cmd . test_args ( ) ) ; 
451451
452-             builder . add_rustc_lib_path ( compiler ,   & mut  cargo ) ; 
452+             cargo . add_rustc_lib_path ( builder ,  compiler ) ; 
453453
454454            if  !try_run ( builder,  & mut  cargo. into ( ) )  { 
455455                return ; 
@@ -554,7 +554,7 @@ impl Step for Clippy {
554554
555555        cargo. arg ( "--" ) . args ( builder. config . cmd . test_args ( ) ) ; 
556556
557-         builder . add_rustc_lib_path ( compiler ,   & mut  cargo ) ; 
557+         cargo . add_rustc_lib_path ( builder ,  compiler ) ; 
558558
559559        builder. run ( & mut  cargo. into ( ) ) ; 
560560    } 
0 commit comments