Skip to content

Commit 9be0b3e

Browse files
committed
Fix x fix on the standard library itself
1 parent 8789e53 commit 9be0b3e

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)