mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
Rollup merge of #108463 - clubby789:update-check-output, r=albertlarsan68
bootstrap: Update the output of the `check` descriptions This should bring the output from `x check` in line with the changes in #108171
This commit is contained in:
commit
2f6ba7b4da
@ -105,10 +105,15 @@ impl Step for Std {
|
|||||||
cargo.arg("--lib");
|
cargo.arg("--lib");
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.info(&format!(
|
let msg = if compiler.host == target {
|
||||||
|
format!("Checking stage{} library artifacts ({target})", builder.top_stage)
|
||||||
|
} else {
|
||||||
|
format!(
|
||||||
"Checking stage{} library artifacts ({} -> {})",
|
"Checking stage{} library artifacts ({} -> {})",
|
||||||
builder.top_stage, &compiler.host, target
|
builder.top_stage, &compiler.host, target
|
||||||
));
|
)
|
||||||
|
};
|
||||||
|
builder.info(&msg);
|
||||||
run_cargo(
|
run_cargo(
|
||||||
builder,
|
builder,
|
||||||
cargo,
|
cargo,
|
||||||
@ -162,10 +167,18 @@ impl Step for Std {
|
|||||||
cargo.arg("-p").arg(krate.name);
|
cargo.arg("-p").arg(krate.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.info(&format!(
|
let msg = if compiler.host == target {
|
||||||
|
format!(
|
||||||
|
"Checking stage{} library test/bench/example targets ({target})",
|
||||||
|
builder.top_stage
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
format!(
|
||||||
"Checking stage{} library test/bench/example targets ({} -> {})",
|
"Checking stage{} library test/bench/example targets ({} -> {})",
|
||||||
builder.top_stage, &compiler.host, target
|
builder.top_stage, &compiler.host, target
|
||||||
));
|
)
|
||||||
|
};
|
||||||
|
builder.info(&msg);
|
||||||
run_cargo(
|
run_cargo(
|
||||||
builder,
|
builder,
|
||||||
cargo,
|
cargo,
|
||||||
@ -239,10 +252,15 @@ impl Step for Rustc {
|
|||||||
cargo.arg("-p").arg(krate.name);
|
cargo.arg("-p").arg(krate.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.info(&format!(
|
let msg = if compiler.host == target {
|
||||||
|
format!("Checking stage{} compiler artifacts ({target})", builder.top_stage)
|
||||||
|
} else {
|
||||||
|
format!(
|
||||||
"Checking stage{} compiler artifacts ({} -> {})",
|
"Checking stage{} compiler artifacts ({} -> {})",
|
||||||
builder.top_stage, &compiler.host, target
|
builder.top_stage, &compiler.host, target
|
||||||
));
|
)
|
||||||
|
};
|
||||||
|
builder.info(&msg);
|
||||||
run_cargo(
|
run_cargo(
|
||||||
builder,
|
builder,
|
||||||
cargo,
|
cargo,
|
||||||
@ -299,10 +317,15 @@ impl Step for CodegenBackend {
|
|||||||
.arg(builder.src.join(format!("compiler/rustc_codegen_{}/Cargo.toml", backend)));
|
.arg(builder.src.join(format!("compiler/rustc_codegen_{}/Cargo.toml", backend)));
|
||||||
rustc_cargo_env(builder, &mut cargo, target);
|
rustc_cargo_env(builder, &mut cargo, target);
|
||||||
|
|
||||||
builder.info(&format!(
|
let msg = if compiler.host == target {
|
||||||
"Checking stage{} {} artifacts ({} -> {})",
|
format!("Checking stage{} {} artifacts ({target})", builder.top_stage, backend)
|
||||||
|
} else {
|
||||||
|
format!(
|
||||||
|
"Checking stage{} {} library ({} -> {})",
|
||||||
builder.top_stage, backend, &compiler.host.triple, target.triple
|
builder.top_stage, backend, &compiler.host.triple, target.triple
|
||||||
));
|
)
|
||||||
|
};
|
||||||
|
builder.info(&msg);
|
||||||
|
|
||||||
run_cargo(
|
run_cargo(
|
||||||
builder,
|
builder,
|
||||||
@ -362,10 +385,15 @@ impl Step for RustAnalyzer {
|
|||||||
cargo.arg("--benches");
|
cargo.arg("--benches");
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.info(&format!(
|
let msg = if compiler.host == target {
|
||||||
|
format!("Checking stage{} {} artifacts ({target})", compiler.stage, "rust-analyzer")
|
||||||
|
} else {
|
||||||
|
format!(
|
||||||
"Checking stage{} {} artifacts ({} -> {})",
|
"Checking stage{} {} artifacts ({} -> {})",
|
||||||
compiler.stage, "rust-analyzer", &compiler.host.triple, target.triple
|
compiler.stage, "rust-analyzer", &compiler.host.triple, target.triple
|
||||||
));
|
)
|
||||||
|
};
|
||||||
|
builder.info(&msg);
|
||||||
run_cargo(
|
run_cargo(
|
||||||
builder,
|
builder,
|
||||||
cargo,
|
cargo,
|
||||||
@ -432,14 +460,18 @@ macro_rules! tool_check_step {
|
|||||||
// NOTE: this doesn't enable lints for any other tools unless they explicitly add `#![warn(rustc::internal)]`
|
// NOTE: this doesn't enable lints for any other tools unless they explicitly add `#![warn(rustc::internal)]`
|
||||||
// See https://github.com/rust-lang/rust/pull/80573#issuecomment-754010776
|
// See https://github.com/rust-lang/rust/pull/80573#issuecomment-754010776
|
||||||
cargo.rustflag("-Zunstable-options");
|
cargo.rustflag("-Zunstable-options");
|
||||||
|
let msg = if compiler.host == target {
|
||||||
builder.info(&format!(
|
format!("Checking stage{} {} artifacts ({target})", builder.top_stage, stringify!($name).to_lowercase())
|
||||||
|
} else {
|
||||||
|
format!(
|
||||||
"Checking stage{} {} artifacts ({} -> {})",
|
"Checking stage{} {} artifacts ({} -> {})",
|
||||||
builder.top_stage,
|
builder.top_stage,
|
||||||
stringify!($name).to_lowercase(),
|
stringify!($name).to_lowercase(),
|
||||||
&compiler.host.triple,
|
&compiler.host.triple,
|
||||||
target.triple
|
target.triple
|
||||||
));
|
)
|
||||||
|
};
|
||||||
|
builder.info(&msg);
|
||||||
run_cargo(
|
run_cargo(
|
||||||
builder,
|
builder,
|
||||||
cargo,
|
cargo,
|
||||||
|
Loading…
Reference in New Issue
Block a user