Skip to content

Commit c59837d

Browse files
committed
Forbid running Clippy on stage 0
1 parent 1338423 commit c59837d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,10 @@ impl Config {
13561356
eprintln!("WARNING: cannot check anything on stage 0. Use at least stage 1.");
13571357
exit!(1);
13581358
}
1359+
(0, Subcommand::Clippy { .. }) => {
1360+
eprintln!("WARNING: cannot run clippy on stage 0. Use at least stage 1.");
1361+
exit!(1);
1362+
}
13591363
_ => {}
13601364
}
13611365

0 commit comments

Comments
 (0)