Rollup merge of #107626 - jyn514:x-fix, r=Mark-Simulacrum
Fix `x fix` on the standard library itself Fixes https://github.com/rust-lang/rust/issues/107501
This commit is contained in:
commit
2c1d3e92e0
1 changed files with 4 additions and 0 deletions
|
@ -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 ({} -> {})",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue