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:
parent
3924dac7bb
commit
2c70b6abf4
@ -623,15 +623,6 @@ pub fn parse(args: &[String]) -> Flags {
|
||||
}
|
||||
};
|
||||
|
||||
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")),
|
||||
|
Loading…
Reference in New Issue
Block a user