Don't give a hard error for `x check --keep-stage 0`

Stage 1 check has been supported since https://github.com/rust-lang/rust/pull/81064.
 #81064 changed the error message for this, but I don't think there's any reason we should prevent using it.
I tested locally and `keep-stage` works fine. Don't give a hard error when trying to use it.
This commit is contained in:
Joshua Nelson 2022-07-23 14:47:05 -05:00
parent 3924dac7bb
commit 2c70b6abf4
1 changed files with 0 additions and 9 deletions

View File

@ -623,15 +623,6 @@ Arguments:
}
};
if let Subcommand::Check { .. } = &cmd {
if matches.opt_str("keep-stage").is_some()
|| matches.opt_str("keep-stage-std").is_some()
{
eprintln!("--keep-stage not yet supported for x.py check");
crate::detail_exit(1);
}
}
Flags {
verbose: matches.opt_count("verbose"),
stage: matches.opt_str("stage").map(|j| j.parse().expect("`stage` should be a number")),