@@ -2330,21 +2330,21 @@ impl Config {
2330
2330
Subcommand :: Doc { .. } => {
2331
2331
flags. stage . or ( doc_stage) . unwrap_or ( if download_rustc { 2 } else { 0 } )
2332
2332
}
2333
- Subcommand :: Build { .. } => {
2333
+ Subcommand :: Build => {
2334
2334
flags. stage . or ( build_stage) . unwrap_or ( if download_rustc { 2 } else { 1 } )
2335
2335
}
2336
2336
Subcommand :: Test { .. } | Subcommand :: Miri { .. } => {
2337
2337
flags. stage . or ( test_stage) . unwrap_or ( if download_rustc { 2 } else { 1 } )
2338
2338
}
2339
2339
Subcommand :: Bench { .. } => flags. stage . or ( bench_stage) . unwrap_or ( 2 ) ,
2340
- Subcommand :: Dist { .. } => flags. stage . or ( dist_stage) . unwrap_or ( 2 ) ,
2341
- Subcommand :: Install { .. } => flags. stage . or ( install_stage) . unwrap_or ( 2 ) ,
2340
+ Subcommand :: Dist => flags. stage . or ( dist_stage) . unwrap_or ( 2 ) ,
2341
+ Subcommand :: Install => flags. stage . or ( install_stage) . unwrap_or ( 2 ) ,
2342
2342
Subcommand :: Perf { .. } => flags. stage . unwrap_or ( 1 ) ,
2343
2343
// These are all bootstrap tools, which don't depend on the compiler.
2344
2344
// The stage we pass shouldn't matter, but use 0 just in case.
2345
2345
Subcommand :: Clean { .. }
2346
2346
| Subcommand :: Clippy { .. }
2347
- | Subcommand :: Fix { .. }
2347
+ | Subcommand :: Fix
2348
2348
| Subcommand :: Run { .. }
2349
2349
| Subcommand :: Setup { .. }
2350
2350
| Subcommand :: Format { .. }
@@ -2359,10 +2359,10 @@ impl Config {
2359
2359
Subcommand :: Test { .. }
2360
2360
| Subcommand :: Miri { .. }
2361
2361
| Subcommand :: Doc { .. }
2362
- | Subcommand :: Build { .. }
2362
+ | Subcommand :: Build
2363
2363
| Subcommand :: Bench { .. }
2364
- | Subcommand :: Dist { .. }
2365
- | Subcommand :: Install { .. } => {
2364
+ | Subcommand :: Dist
2365
+ | Subcommand :: Install => {
2366
2366
assert_eq ! (
2367
2367
config. stage, 2 ,
2368
2368
"x.py should be run with `--stage 2` on CI, but was run with `--stage {}`" ,
@@ -2372,7 +2372,7 @@ impl Config {
2372
2372
Subcommand :: Clean { .. }
2373
2373
| Subcommand :: Check { .. }
2374
2374
| Subcommand :: Clippy { .. }
2375
- | Subcommand :: Fix { .. }
2375
+ | Subcommand :: Fix
2376
2376
| Subcommand :: Run { .. }
2377
2377
| Subcommand :: Setup { .. }
2378
2378
| Subcommand :: Format { .. }
0 commit comments