Skip to content

Commit 0e3cb54

Browse files
committed
Propagate rustc_use_parallel_compiler in more crates
This fixes `x test compiler` under `rust.parallel-compiler = true`.
1 parent fedb840 commit 0e3cb54

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

compiler/rustc_lint/Cargo.toml

+9
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ rustc_type_ir = { path = "../rustc_type_ir" }
2727
tracing = "0.1"
2828
unicode-security = "0.1.0"
2929
# tidy-alphabetical-end
30+
31+
[features]
32+
# tidy-alphabetical-start
33+
rustc_use_parallel_compiler = [
34+
'rustc_data_structures/rustc_use_parallel_compiler',
35+
'rustc_errors/rustc_use_parallel_compiler',
36+
'rustc_middle/rustc_use_parallel_compiler',
37+
]
38+
# tidy-alphabetical-end

compiler/rustc_lint_defs/Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ rustc_span = { path = "../rustc_span" }
1515
rustc_target = { path = "../rustc_target" }
1616
serde = { version = "1.0.125", features = ["derive"] }
1717
# tidy-alphabetical-end
18+
19+
[features]
20+
# tidy-alphabetical-start
21+
rustc_use_parallel_compiler = [
22+
'rustc_data_structures/rustc_use_parallel_compiler',
23+
'rustc_error_messages/rustc_use_parallel_compiler',
24+
]
25+
# tidy-alphabetical-end

compiler/rustc_middle/Cargo.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,11 @@ tracing = "0.1"
4141
[features]
4242
# tidy-alphabetical-start
4343
rustc_randomized_layouts = []
44-
rustc_use_parallel_compiler = ["dep:rustc-rayon-core"]
44+
rustc_use_parallel_compiler = [
45+
"dep:rustc-rayon-core",
46+
"rustc_data_structures/rustc_use_parallel_compiler",
47+
"rustc_errors/rustc_use_parallel_compiler",
48+
"rustc_error_messages/rustc_use_parallel_compiler",
49+
"rustc_query_system/rustc_use_parallel_compiler",
50+
]
4551
# tidy-alphabetical-end

compiler/rustc_mir_transform/Cargo.toml

+9
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,12 @@ rustc_type_ir = { path = "../rustc_type_ir" }
2929
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
3030
tracing = "0.1"
3131
# tidy-alphabetical-end
32+
33+
[features]
34+
# tidy-alphabetical-start
35+
rustc_use_parallel_compiler = [
36+
'rustc_data_structures/rustc_use_parallel_compiler',
37+
'rustc_errors/rustc_use_parallel_compiler',
38+
'rustc_middle/rustc_use_parallel_compiler',
39+
]
40+
# tidy-alphabetical-end

0 commit comments

Comments
 (0)