make x check to use stage0 by default

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2025-06-03 10:53:12 +03:00
parent 99426c570e
commit 4e71f24a6b

View file

@ -2531,7 +2531,10 @@ impl Config {
|| bench_stage.is_some();
// See https://github.com/rust-lang/compiler-team/issues/326
config.stage = match config.cmd {
Subcommand::Check { .. } | Subcommand::Clippy { .. } | Subcommand::Fix => {
Subcommand::Check { .. } => {
flags.stage.or(check_stage).unwrap_or(0)
}
Subcommand::Clippy { .. } | Subcommand::Fix => {
flags.stage.or(check_stage).unwrap_or(1)
}
// `download-rustc` only has a speed-up for stage2 builds. Default to stage2 unless explicitly overridden.