about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-07-30 22:50:56 +0200
committerGitHub <noreply@github.com>2022-07-30 22:50:56 +0200
commit44c4b4a0e709c01ece25cd896dd70d9becf62c6e (patch)
tree21b6b7b2e395092f18f4d0d5ba7789778d2a206d /src
parent038f9e6bef9c8fcf122d93a8a33ac546f5606eb3 (diff)
parent2c70b6abf4d9d78556125a145bdce1bbacbda5b4 (diff)
downloadrust-44c4b4a0e709c01ece25cd896dd70d9becf62c6e.tar.gz
rust-44c4b4a0e709c01ece25cd896dd70d9becf62c6e.zip
Rollup merge of #99650 - jyn514:keep-stage-check, r=Mark-Simulacrum
Support `x --keep-stage 0 check`

Stage 1 check has been supported since https://github.com/rust-lang/rust/pull/81064.
 https://github.com/rust-lang/rust/pull/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`
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/flags.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs
index 1822c2936b7..80b3bcce860 100644
--- a/src/bootstrap/flags.rs
+++ b/src/bootstrap/flags.rs
@@ -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")),