1
Fork 0

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:
Matthias Krüger 2023-02-14 18:24:40 +01:00 committed by GitHub
commit 2c1d3e92e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ({} -> {})",