Skip to content

Commit 0a96e00

Browse files
committed
bootstrap: address lint failures
Unexpected Clippy lint triggering is fixed in upcoming commits but is necessary for `cfg(bootstrap)`.
1 parent 5c35a06 commit 0a96e00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2575,7 +2575,7 @@ fn prepare_cargo_test(
25752575
// by `Cargo::new` and that actually makes things go wrong.
25762576
if builder.kind != Kind::Miri {
25772577
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));
25792579
helpers::add_dylib_path(dylib_paths, &mut cargo);
25802580
}
25812581

src/bootstrap/src/core/build_steps/tool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ impl ErrorIndex {
576576
let compiler = builder.compiler_for(builder.top_stage, host, host);
577577
let mut cmd = command(builder.ensure(ErrorIndex { compiler }).tool_path);
578578
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));
580580
add_dylib_path(dylib_paths, &mut cmd);
581581
cmd
582582
}

0 commit comments

Comments
 (0)