Skip to content

Commit 9720bd1

Browse files
committed
Forbid running Clippy on stage 0
1 parent 9f40fa1 commit 9720bd1

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
@@ -1375,6 +1375,10 @@ impl Config {
13751375
eprintln!("ERROR: cannot document anything on stage 0. Use at least stage 1.");
13761376
exit!(1);
13771377
}
1378+
(0, Subcommand::Clippy { .. }) => {
1379+
eprintln!("ERROR: cannot run clippy on stage 0. Use at least stage 1.");
1380+
exit!(1);
1381+
}
13781382
_ => {}
13791383
}
13801384

0 commit comments

Comments
 (0)