Skip to content

Commit

Permalink
Rollup merge of rust-lang#76796 - jyn514:wrong-stage, r=shepmaster
Browse files Browse the repository at this point in the history
Give a better error message when x.py uses the wrong stage for CI

r? @shepmaster
  • Loading branch information
RalfJung authored Sep 19, 2020
2 parents 4831523 + be37265 commit 404cce0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,13 @@ impl Config {
| Subcommand::Build { .. }
| Subcommand::Bench { .. }
| Subcommand::Dist { .. }
| Subcommand::Install { .. } => assert_eq!(config.stage, 2),
| Subcommand::Install { .. } => {
assert_eq!(
config.stage, 2,
"x.py should be run with `--stage 2` on CI, but was run with `--stage {}`",
config.stage,
);
}
Subcommand::Clean { .. }
| Subcommand::Check { .. }
| Subcommand::Clippy { .. }
Expand Down

0 comments on commit 404cce0

Please sign in to comment.