summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-07-23 14:47:05 -0500
committerJoshua Nelson <jnelson@cloudflare.com>2022-07-29 19:01:19 -0500
commit2c70b6abf4d9d78556125a145bdce1bbacbda5b4 (patch)
treea4d2c44b5a31f0fa4afefa7acba89db01914f91a /src/bootstrap
parent3924dac7bb29bc8eb348059c901e8f912399c857 (diff)
downloadrust-2c70b6abf4d9d78556125a145bdce1bbacbda5b4.tar.gz
rust-2c70b6abf4d9d78556125a145bdce1bbacbda5b4.zip
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.
Diffstat (limited to 'src/bootstrap')
-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")),