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 84dcb78 commit 6bf0ab7Copy full SHA for 6bf0ab7
src/bootstrap/src/core/config/config.rs
@@ -1009,12 +1009,9 @@ impl Config {
1009
};
1010
1011
// Now check that the selected stage makes sense, and if not, print a warning and end
1012
- match (config.stage, &config.cmd) {
1013
- (0, Subcommand::Build) => {
1014
- eprintln!("WARNING: cannot build anything on stage 0. Use at least stage 1.");
1015
- exit!(1)
1016
- }
1017
- _ => {}
+ if let (0, Subcommand::Build) = (config.stage, &config.cmd) {
+ eprintln!("WARNING: cannot build anything on stage 0. Use at least stage 1.");
+ exit!(1);
1018
}
1019
1020
// CI should always run stage 2 builds, unless it specifically states otherwise
0 commit comments