Forbid running dist steps on stage 0
This commit is contained in:
parent
cf6612286e
commit
7cdee3927e
1 changed files with 4 additions and 0 deletions
|
|
@ -1041,6 +1041,10 @@ impl Config {
|
|||
eprintln!("ERROR: cannot run clippy on stage 0. Use at least stage 1.");
|
||||
exit!(1);
|
||||
}
|
||||
(0, Subcommand::Dist { .. }) => {
|
||||
eprintln!("ERROR: cannot dist anything on stage 0. Use at least stage 1.");
|
||||
exit!(1);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue