This repository was archived by the owner on May 28, 2025. It is now read-only.
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 @@ -2558,7 +2558,7 @@ fn prepare_cargo_test(
2558
2558
// by `Cargo::new` and that actually makes things go wrong.
2559
2559
if builder. kind != Kind :: Miri {
2560
2560
let mut dylib_paths = builder. rustc_lib_paths ( compiler) ;
2561
- dylib_paths. push ( PathBuf :: from ( & builder. sysroot_target_libdir ( compiler, target) ) ) ;
2561
+ dylib_paths. push ( builder. sysroot_target_libdir ( compiler, target) ) ;
2562
2562
helpers:: add_dylib_path ( dylib_paths, & mut cargo) ;
2563
2563
}
2564
2564
Original file line number Diff line number Diff line change @@ -566,7 +566,7 @@ impl ErrorIndex {
566
566
let compiler = builder. compiler_for ( builder. top_stage , host, host) ;
567
567
let mut cmd = command ( builder. ensure ( ErrorIndex { compiler } ) . tool_path ) ;
568
568
let mut dylib_paths = builder. rustc_lib_paths ( compiler) ;
569
- dylib_paths. push ( PathBuf :: from ( & builder. sysroot_target_libdir ( compiler, compiler. host ) ) ) ;
569
+ dylib_paths. push ( builder. sysroot_target_libdir ( compiler, compiler. host ) ) ;
570
570
add_dylib_path ( dylib_paths, & mut cmd) ;
571
571
cmd
572
572
}
You can’t perform that action at this time.
0 commit comments