Skip to content

Commit 2c70b6a

Browse files
committed
Don't give a hard error for x check --keep-stage 0
Stage 1 check has been supported since rust-lang#81064. rust-lang#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.
1 parent 3924dac commit 2c70b6a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/bootstrap/flags.rs

-9
Original file line numberDiff line numberDiff line change
@@ -623,15 +623,6 @@ Arguments:
623623
}
624624
};
625625

626-
if let Subcommand::Check { .. } = &cmd {
627-
if matches.opt_str("keep-stage").is_some()
628-
|| matches.opt_str("keep-stage-std").is_some()
629-
{
630-
eprintln!("--keep-stage not yet supported for x.py check");
631-
crate::detail_exit(1);
632-
}
633-
}
634-
635626
Flags {
636627
verbose: matches.opt_count("verbose"),
637628
stage: matches.opt_str("stage").map(|j| j.parse().expect("`stage` should be a number")),

0 commit comments

Comments
 (0)