Skip to content

Commit 404cce0

Browse files
authored
Rollup merge of #76796 - jyn514:wrong-stage, r=shepmaster
Give a better error message when x.py uses the wrong stage for CI r? @shepmaster
2 parents 4831523 + be37265 commit 404cce0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/bootstrap/config.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,13 @@ impl Config {
617617
| Subcommand::Build { .. }
618618
| Subcommand::Bench { .. }
619619
| Subcommand::Dist { .. }
620-
| Subcommand::Install { .. } => assert_eq!(config.stage, 2),
620+
| Subcommand::Install { .. } => {
621+
assert_eq!(
622+
config.stage, 2,
623+
"x.py should be run with `--stage 2` on CI, but was run with `--stage {}`",
624+
config.stage,
625+
);
626+
}
621627
Subcommand::Clean { .. }
622628
| Subcommand::Check { .. }
623629
| Subcommand::Clippy { .. }

0 commit comments

Comments
 (0)