about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-08-08 17:00:24 +0200
committerJakub Beránek <berykubik@gmail.com>2025-08-13 08:11:00 +0200
commitd2165674e78aff1d0712b02bf33979230c321c85 (patch)
treeb04bf9cd63d58c3f64420c4bc158bfa9990367e9
parent5d1535ca294db11c1cfff39aa31e18164eae28b4 (diff)
downloadrust-d2165674e78aff1d0712b02bf33979230c321c85.tar.gz
rust-d2165674e78aff1d0712b02bf33979230c321c85.zip
Forbid running Clippy on stage 0
-rw-r--r--src/bootstrap/src/core/config/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs
index a656927b1f6..9ced81e1e28 100644
--- a/src/bootstrap/src/core/config/config.rs
+++ b/src/bootstrap/src/core/config/config.rs
@@ -1375,6 +1375,10 @@ impl Config {
                 eprintln!("ERROR: cannot document anything on stage 0. Use at least stage 1.");
                 exit!(1);
             }
+            (0, Subcommand::Clippy { .. }) => {
+                eprintln!("ERROR: cannot run clippy on stage 0. Use at least stage 1.");
+                exit!(1);
+            }
             _ => {}
         }