Skip to content

Commit

Permalink
Rollup merge of #99650 - jyn514:keep-stage-check, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Support `x --keep-stage 0 check`

Stage 1 check has been supported since #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.

r? `@Mark-Simulacrum`
  • Loading branch information
matthiaskrgr authored Jul 30, 2022
2 parents 038f9e6 + 2c70b6a commit 44c4b4a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/bootstrap/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down

0 comments on commit 44c4b4a

Please sign in to comment.