@@ -2330,21 +2330,21 @@ impl Config {
23302330 Subcommand :: Doc { .. } => {
23312331 flags. stage . or ( doc_stage) . unwrap_or ( if download_rustc { 2 } else { 0 } )
23322332 }
2333- Subcommand :: Build { .. } => {
2333+ Subcommand :: Build => {
23342334 flags. stage . or ( build_stage) . unwrap_or ( if download_rustc { 2 } else { 1 } )
23352335 }
23362336 Subcommand :: Test { .. } | Subcommand :: Miri { .. } => {
23372337 flags. stage . or ( test_stage) . unwrap_or ( if download_rustc { 2 } else { 1 } )
23382338 }
23392339 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 ) ,
23422342 Subcommand :: Perf { .. } => flags. stage . unwrap_or ( 1 ) ,
23432343 // These are all bootstrap tools, which don't depend on the compiler.
23442344 // The stage we pass shouldn't matter, but use 0 just in case.
23452345 Subcommand :: Clean { .. }
23462346 | Subcommand :: Clippy { .. }
2347- | Subcommand :: Fix { .. }
2347+ | Subcommand :: Fix
23482348 | Subcommand :: Run { .. }
23492349 | Subcommand :: Setup { .. }
23502350 | Subcommand :: Format { .. }
@@ -2359,10 +2359,10 @@ impl Config {
23592359 Subcommand :: Test { .. }
23602360 | Subcommand :: Miri { .. }
23612361 | Subcommand :: Doc { .. }
2362- | Subcommand :: Build { .. }
2362+ | Subcommand :: Build
23632363 | Subcommand :: Bench { .. }
2364- | Subcommand :: Dist { .. }
2365- | Subcommand :: Install { .. } => {
2364+ | Subcommand :: Dist
2365+ | Subcommand :: Install => {
23662366 assert_eq ! (
23672367 config. stage, 2 ,
23682368 "x.py should be run with `--stage 2` on CI, but was run with `--stage {}`" ,
@@ -2372,7 +2372,7 @@ impl Config {
23722372 Subcommand :: Clean { .. }
23732373 | Subcommand :: Check { .. }
23742374 | Subcommand :: Clippy { .. }
2375- | Subcommand :: Fix { .. }
2375+ | Subcommand :: Fix
23762376 | Subcommand :: Run { .. }
23772377 | Subcommand :: Setup { .. }
23782378 | Subcommand :: Format { .. }
0 commit comments