File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2575,7 +2575,7 @@ fn prepare_cargo_test(
2575
2575
// by `Cargo::new` and that actually makes things go wrong.
2576
2576
if builder. kind != Kind :: Miri {
2577
2577
let mut dylib_paths = builder. rustc_lib_paths ( compiler) ;
2578
- dylib_paths. push ( PathBuf :: from ( & builder. sysroot_target_libdir ( compiler, target) ) ) ;
2578
+ dylib_paths. push ( builder. sysroot_target_libdir ( compiler, target) ) ;
2579
2579
helpers:: add_dylib_path ( dylib_paths, & mut cargo) ;
2580
2580
}
2581
2581
Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ impl ErrorIndex {
576
576
let compiler = builder. compiler_for ( builder. top_stage , host, host) ;
577
577
let mut cmd = command ( builder. ensure ( ErrorIndex { compiler } ) . tool_path ) ;
578
578
let mut dylib_paths = builder. rustc_lib_paths ( compiler) ;
579
- dylib_paths. push ( PathBuf :: from ( & builder. sysroot_target_libdir ( compiler, compiler. host ) ) ) ;
579
+ dylib_paths. push ( builder. sysroot_target_libdir ( compiler, compiler. host ) ) ;
580
580
add_dylib_path ( dylib_paths, & mut cmd) ;
581
581
cmd
582
582
}
You can’t perform that action at this time.
0 commit comments