File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11# These defaults are meant for contributors to the standard library and documentation.
22[build ]
33# When building the standard library, you almost never want to build the compiler itself.
4- build-stage = 0
5- test-stage = 0
6- bench-stage = 0
4+ build-stage = 1
5+ test-stage = 1
6+ bench-stage = 1
77
88[rust ]
99# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
Original file line number Diff line number Diff line change @@ -2531,10 +2531,12 @@ impl Config {
25312531 || bench_stage. is_some ( ) ;
25322532 // See https://github.com/rust-lang/compiler-team/issues/326
25332533 config. stage = match config. cmd {
2534- Subcommand :: Check { .. } => flags. stage . or ( check_stage) . unwrap_or ( 0 ) ,
2534+ Subcommand :: Check { .. } | Subcommand :: Clippy { .. } | Subcommand :: Fix => {
2535+ flags. stage . or ( check_stage) . unwrap_or ( 1 )
2536+ }
25352537 // `download-rustc` only has a speed-up for stage2 builds. Default to stage2 unless explicitly overridden.
25362538 Subcommand :: Doc { .. } => {
2537- flags. stage . or ( doc_stage) . unwrap_or ( if download_rustc { 2 } else { 0 } )
2539+ flags. stage . or ( doc_stage) . unwrap_or ( if download_rustc { 2 } else { 1 } )
25382540 }
25392541 Subcommand :: Build => {
25402542 flags. stage . or ( build_stage) . unwrap_or ( if download_rustc { 2 } else { 1 } )
@@ -2549,8 +2551,6 @@ impl Config {
25492551 // These are all bootstrap tools, which don't depend on the compiler.
25502552 // The stage we pass shouldn't matter, but use 0 just in case.
25512553 Subcommand :: Clean { .. }
2552- | Subcommand :: Clippy { .. }
2553- | Subcommand :: Fix
25542554 | Subcommand :: Run { .. }
25552555 | Subcommand :: Setup { .. }
25562556 | Subcommand :: Format { .. }
You can’t perform that action at this time.
0 commit comments