This repository was archived by the owner on May 28, 2025. It is now read-only.
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 1
1
# These defaults are meant for contributors to the standard library and documentation.
2
2
[build ]
3
3
# 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
7
7
8
8
[rust ]
9
9
# 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 @@ -2433,10 +2433,12 @@ impl Config {
2433
2433
|| bench_stage. is_some ( ) ;
2434
2434
// See https://github.com/rust-lang/compiler-team/issues/326
2435
2435
config. stage = match config. cmd {
2436
- Subcommand :: Check { .. } => flags. stage . or ( check_stage) . unwrap_or ( 0 ) ,
2436
+ Subcommand :: Check { .. } | Subcommand :: Clippy { .. } | Subcommand :: Fix => {
2437
+ flags. stage . or ( check_stage) . unwrap_or ( 1 )
2438
+ }
2437
2439
// `download-rustc` only has a speed-up for stage2 builds. Default to stage2 unless explicitly overridden.
2438
2440
Subcommand :: Doc { .. } => {
2439
- flags. stage . or ( doc_stage) . unwrap_or ( if download_rustc { 2 } else { 0 } )
2441
+ flags. stage . or ( doc_stage) . unwrap_or ( if download_rustc { 2 } else { 1 } )
2440
2442
}
2441
2443
Subcommand :: Build => {
2442
2444
flags. stage . or ( build_stage) . unwrap_or ( if download_rustc { 2 } else { 1 } )
@@ -2451,8 +2453,6 @@ impl Config {
2451
2453
// These are all bootstrap tools, which don't depend on the compiler.
2452
2454
// The stage we pass shouldn't matter, but use 0 just in case.
2453
2455
Subcommand :: Clean { .. }
2454
- | Subcommand :: Clippy { .. }
2455
- | Subcommand :: Fix
2456
2456
| Subcommand :: Run { .. }
2457
2457
| Subcommand :: Setup { .. }
2458
2458
| Subcommand :: Format { .. }
You can’t perform that action at this time.
0 commit comments