@@ -263,7 +263,7 @@ impl Step for Cargotest {
263
263
264
264
let _time = helpers:: timeit ( builder) ;
265
265
let mut cmd = builder. tool_cmd ( Tool :: CargoTest ) ;
266
- cmd. arg ( & cargo)
266
+ cmd. arg ( & cargo. tool_path )
267
267
. arg ( & out_dir)
268
268
. args ( builder. config . test_args ( ) )
269
269
. env ( "RUSTC" , builder. rustc ( compiler) )
@@ -1718,7 +1718,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1718
1718
// If we're using `--stage 0`, we should provide the bootstrap cargo.
1719
1719
builder. initial_cargo . clone ( )
1720
1720
} else {
1721
- builder. ensure ( tool:: Cargo { compiler, target : compiler. host } )
1721
+ builder. ensure ( tool:: Cargo { compiler, target : compiler. host } ) . tool_path
1722
1722
} ;
1723
1723
1724
1724
cmd. arg ( "--cargo-path" ) . arg ( cargo_path) ;
@@ -1739,9 +1739,10 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1739
1739
// Use the beta compiler for jsondocck
1740
1740
let json_compiler = compiler. with_stage ( 0 ) ;
1741
1741
cmd. arg ( "--jsondocck-path" )
1742
- . arg ( builder. ensure ( tool:: JsonDocCk { compiler : json_compiler, target } ) ) ;
1743
- cmd. arg ( "--jsondoclint-path" )
1744
- . arg ( builder. ensure ( tool:: JsonDocLint { compiler : json_compiler, target } ) ) ;
1742
+ . arg ( builder. ensure ( tool:: JsonDocCk { compiler : json_compiler, target } ) . tool_path ) ;
1743
+ cmd. arg ( "--jsondoclint-path" ) . arg (
1744
+ builder. ensure ( tool:: JsonDocLint { compiler : json_compiler, target } ) . tool_path ,
1745
+ ) ;
1745
1746
}
1746
1747
1747
1748
if matches ! ( mode, "coverage-map" | "coverage-run" ) {
@@ -2976,12 +2977,15 @@ impl Step for RemoteCopyLibs {
2976
2977
2977
2978
builder. info ( & format ! ( "REMOTE copy libs to emulator ({target})" ) ) ;
2978
2979
2979
- let server = builder. ensure ( tool:: RemoteTestServer { compiler, target } ) ;
2980
+ let remote_test_server = builder. ensure ( tool:: RemoteTestServer { compiler, target } ) ;
2980
2981
2981
2982
// Spawn the emulator and wait for it to come online
2982
2983
let tool = builder. tool_exe ( Tool :: RemoteTestClient ) ;
2983
2984
let mut cmd = command ( & tool) ;
2984
- cmd. arg ( "spawn-emulator" ) . arg ( target. triple ) . arg ( & server) . arg ( builder. tempdir ( ) ) ;
2985
+ cmd. arg ( "spawn-emulator" )
2986
+ . arg ( target. triple )
2987
+ . arg ( & remote_test_server. tool_path )
2988
+ . arg ( builder. tempdir ( ) ) ;
2985
2989
if let Some ( rootfs) = builder. qemu_rootfs ( target) {
2986
2990
cmd. arg ( rootfs) ;
2987
2991
}
0 commit comments