We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d04c746 commit 49ed3f9Copy full SHA for 49ed3f9
src/bootstrap/src/core/config/config.rs
@@ -1004,12 +1004,9 @@ impl Config {
1004
};
1005
1006
// Now check that the selected stage makes sense, and if not, print a warning and end
1007
- match (config.stage, &config.cmd) {
1008
- (0, Subcommand::Build) => {
1009
- eprintln!("WARNING: cannot build anything on stage 0. Use at least stage 1.");
1010
- exit!(1)
1011
- }
1012
- _ => {}
+ if let (0, Subcommand::Build) = (config.stage, &config.cmd) {
+ eprintln!("WARNING: cannot build anything on stage 0. Use at least stage 1.");
+ exit!(1);
1013
}
1014
1015
// CI should always run stage 2 builds, unless it specifically states otherwise
0 commit comments