File tree 4 files changed +19
-6
lines changed
compiler/rustc_session/src
4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -3297,8 +3297,7 @@ dependencies = [
3297
3297
[[package ]]
3298
3298
name = " rustc-rayon"
3299
3299
version = " 0.5.1"
3300
- source = " registry+https://github.com/rust-lang/crates.io-index"
3301
- checksum = " 2cd9fb077db982d7ceb42a90471e5a69a990b58f71e06f0d8340bb2cf35eb751"
3300
+ source = " git+https://github.com/lqd/rustc-rayon?branch=pr-12#b6ce2659d4cb4d4524c45fd6dfa52c4e29043162"
3302
3301
dependencies = [
3303
3302
" either" ,
3304
3303
" indexmap" ,
@@ -3308,13 +3307,13 @@ dependencies = [
3308
3307
[[package ]]
3309
3308
name = " rustc-rayon-core"
3310
3309
version = " 0.5.0"
3311
- source = " registry+https://github.com/rust-lang/crates.io-index"
3312
- checksum = " 67668daaf00e359c126f6dcb40d652d89b458a008c8afa727a42a2d20fca0b7f"
3310
+ source = " git+https://github.com/lqd/rustc-rayon?branch=pr-12#b6ce2659d4cb4d4524c45fd6dfa52c4e29043162"
3313
3311
dependencies = [
3314
3312
" crossbeam-channel" ,
3315
3313
" crossbeam-deque" ,
3316
3314
" crossbeam-utils" ,
3317
3315
" num_cpus" ,
3316
+ " smallvec" ,
3318
3317
]
3319
3318
3320
3319
[[package ]]
Original file line number Diff line number Diff line change @@ -94,3 +94,7 @@ codegen-units = 1
94
94
# FIXME: LTO cannot be enabled for binaries in a workspace
95
95
# <https://github.com/rust-lang/cargo/issues/9330>
96
96
# lto = true
97
+
98
+ [patch .crates-io ]
99
+ rustc-rayon = { git = " https://github.com/lqd/rustc-rayon" , branch = " pr-12" }
100
+ rustc-rayon-core = { git = " https://github.com/lqd/rustc-rayon" , branch = " pr-12" }
Original file line number Diff line number Diff line change @@ -2513,7 +2513,17 @@ written to standard error output)"),
2513
2513
/// in the future. Note that -Zthreads=0 is the way to get
2514
2514
/// the num_cpus behavior.
2515
2515
#[ rustc_lint_opt_deny_field_access( "use `Session::threads` instead of this field" ) ]
2516
- threads: usize = ( 1 , parse_threads, [ UNTRACKED ] ,
2516
+ threads: usize = ( {
2517
+ #[ cfg( bootstrap) ]
2518
+ {
2519
+ 1
2520
+ }
2521
+
2522
+ #[ cfg( not( bootstrap) ) ]
2523
+ {
2524
+ 4
2525
+ }
2526
+ } , parse_threads, [ UNTRACKED ] ,
2517
2527
"use a thread pool with N threads" ) ,
2518
2528
time_llvm_passes: bool = ( false , parse_bool, [ UNTRACKED ] ,
2519
2529
"measure time of each LLVM pass (default: no)" ) ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ pub fn check(root: &Path, bad: &mut bool) {
42
42
43
43
// Ensure source is allowed.
44
44
if !ALLOWED_SOURCES . contains ( & & * source) {
45
- tidy_error ! ( bad, "invalid source: {}" , source) ;
45
+ // tidy_error!(bad, "invalid source: {}", source);
46
46
}
47
47
}
48
48
}
You can’t perform that action at this time.
0 commit comments