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 a1ba861 + 9be0b3e commit 2c1d3e9
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 2c1d3e9

Please sign in to comment.