Skip to content

Commit 589bcdc

Browse files
authored
Rollup merge of rust-lang#107626 - jyn514:x-fix, r=Mark-Simulacrum
Fix `x fix` on the standard library itself Fixes rust-lang#107501
2 parents f28191e + 9be0b3e commit 589bcdc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/check.rs

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ impl Step for Std {
9999
cargo_subcommand(builder.kind),
100100
);
101101
std_cargo(builder, target, compiler.stage, &mut cargo);
102+
if matches!(builder.config.cmd, Subcommand::Fix { .. }) {
103+
// By default, cargo tries to fix all targets. Tell it not to fix tests until we've added `test` to the sysroot.
104+
cargo.arg("--lib");
105+
}
102106

103107
builder.info(&format!(
104108
"Checking stage{} library artifacts ({} -> {})",

0 commit comments

Comments
 (0)