Skip to content

Commit

Permalink
Rollup merge of rust-lang#107626 - jyn514:x-fix, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Fix `x fix` on the standard library itself

Fixes rust-lang#107501
  • Loading branch information
matthiaskrgr authored Feb 14, 2023
2 parents f28191e + 9be0b3e commit 589bcdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ impl Step for Std {
cargo_subcommand(builder.kind),
);
std_cargo(builder, target, compiler.stage, &mut cargo);
if matches!(builder.config.cmd, Subcommand::Fix { .. }) {
// By default, cargo tries to fix all targets. Tell it not to fix tests until we've added `test` to the sysroot.
cargo.arg("--lib");
}

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

0 comments on commit 589bcdc

Please sign in to comment.