File tree 14 files changed +19
-18
lines changed
14 files changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -3505,7 +3505,6 @@ version = "0.0.0"
3505
3505
dependencies = [
3506
3506
" log" ,
3507
3507
" rustc_ast" ,
3508
- " rustc_data_structures" ,
3509
3508
" rustc_span" ,
3510
3509
]
3511
3510
@@ -3522,7 +3521,6 @@ dependencies = [
3522
3521
" rustc_session" ,
3523
3522
" rustc_span" ,
3524
3523
" serialize" ,
3525
- " smallvec 1.0.0" ,
3526
3524
]
3527
3525
3528
3526
[[package ]]
@@ -3781,7 +3779,6 @@ dependencies = [
3781
3779
" rustc_ast" ,
3782
3780
" rustc_attr" ,
3783
3781
" rustc_data_structures" ,
3784
- " rustc_error_codes" ,
3785
3782
" rustc_errors" ,
3786
3783
" rustc_hir" ,
3787
3784
" rustc_index" ,
@@ -3948,7 +3945,6 @@ dependencies = [
3948
3945
" rustc_hir" ,
3949
3946
" rustc_index" ,
3950
3947
" rustc_infer" ,
3951
- " rustc_macros" ,
3952
3948
" rustc_session" ,
3953
3949
" rustc_span" ,
3954
3950
" rustc_target" ,
@@ -3985,7 +3981,6 @@ dependencies = [
3985
3981
" rustc_attr" ,
3986
3982
" rustc_data_structures" ,
3987
3983
" rustc_errors" ,
3988
- " rustc_feature" ,
3989
3984
" rustc_hir" ,
3990
3985
" rustc_index" ,
3991
3986
" rustc_infer" ,
@@ -4039,7 +4034,6 @@ dependencies = [
4039
4034
" rustc_expand" ,
4040
4035
" rustc_feature" ,
4041
4036
" rustc_hir" ,
4042
- " rustc_infer" ,
4043
4037
" rustc_metadata" ,
4044
4038
" rustc_session" ,
4045
4039
" rustc_span" ,
@@ -4075,7 +4069,6 @@ dependencies = [
4075
4069
" rustc_errors" ,
4076
4070
" rustc_feature" ,
4077
4071
" rustc_fs_util" ,
4078
- " rustc_index" ,
4079
4072
" rustc_span" ,
4080
4073
" rustc_target" ,
4081
4074
" serialize" ,
@@ -4129,9 +4122,7 @@ dependencies = [
4129
4122
" rustc_data_structures" ,
4130
4123
" rustc_hir" ,
4131
4124
" rustc_infer" ,
4132
- " rustc_macros" ,
4133
4125
" rustc_span" ,
4134
- " rustc_target" ,
4135
4126
" smallvec 1.0.0" ,
4136
4127
]
4137
4128
Original file line number Diff line number Diff line change @@ -91,3 +91,8 @@ pub mod util {
91
91
92
92
// Allows macros to refer to this crate as `::rustc`
93
93
extern crate self as rustc;
94
+
95
+ // Suppress warning: these crates will be unused when cfg(parallel_compiler) is not enabled
96
+ use rustc_rayon as _;
97
+ use rustc_rayon_core as _;
98
+ use jobserver as _;
Original file line number Diff line number Diff line change @@ -12,5 +12,4 @@ doctest = false
12
12
[dependencies ]
13
13
log = " 0.4"
14
14
rustc_span = { path = " ../librustc_span" }
15
- rustc_data_structures = { path = " ../librustc_data_structures" }
16
15
rustc_ast = { path = " ../librustc_ast" }
Original file line number Diff line number Diff line change @@ -17,6 +17,5 @@ rustc_span = { path = "../librustc_span" }
17
17
rustc_data_structures = { path = " ../librustc_data_structures" }
18
18
rustc_feature = { path = " ../librustc_feature" }
19
19
rustc_macros = { path = " ../librustc_macros" }
20
- smallvec = { version = " 1.0" , features = [" union" , " may_dangle" ] }
21
20
rustc_session = { path = " ../librustc_session" }
22
21
rustc_ast = { path = " ../librustc_ast" }
Original file line number Diff line number Diff line change 24
24
#![ feature( thread_id_value) ]
25
25
#![ allow( rustc:: default_hash_types) ]
26
26
27
+ // Suppress warning: these crates will be unused when cfg(parallel_compiler) is not enabled
28
+ use crossbeam_utils as _;
29
+ use rayon as _;
30
+ use rayon_core as _;
31
+
27
32
#[ macro_use]
28
33
extern crate log;
29
34
#[ cfg( unix) ]
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ rustc_attr = { path = "../librustc_attr" }
17
17
rustc = { path = " ../librustc" }
18
18
rustc_data_structures = { path = " ../librustc_data_structures" }
19
19
rustc_errors = { path = " ../librustc_errors" }
20
- rustc_error_codes = { path = " ../librustc_error_codes" }
21
20
rustc_hir = { path = " ../librustc_hir" }
22
21
rustc_index = { path = " ../librustc_index" }
23
22
rustc_macros = { path = " ../librustc_macros" }
Original file line number Diff line number Diff line change @@ -21,3 +21,6 @@ pub use queries::Queries;
21
21
22
22
#[ cfg( test) ]
23
23
mod tests;
24
+
25
+ // Suppress warning: this crate will be unused when cfg(parallel_compiler) is not enable
26
+ use rayon as _;
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ rustc_index = { path = "../librustc_index" }
20
20
rustc_errors = { path = " ../librustc_errors" }
21
21
rustc_hir = { path = " ../librustc_hir" }
22
22
rustc_infer = { path = " ../librustc_infer" }
23
- rustc_macros = { path = " ../librustc_macros" }
24
23
rustc_serialize = { path = " ../libserialize" , package = " serialize" }
25
24
rustc_session = { path = " ../librustc_session" }
26
25
rustc_span = { path = " ../librustc_span" }
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ rustc = { path = "../librustc" }
14
14
rustc_attr = { path = " ../librustc_attr" }
15
15
rustc_data_structures = { path = " ../librustc_data_structures" }
16
16
rustc_errors = { path = " ../librustc_errors" }
17
- rustc_feature = { path = " ../librustc_feature" }
18
17
rustc_hir = { path = " ../librustc_hir" }
19
18
rustc_index = { path = " ../librustc_index" }
20
19
rustc_infer = { path = " ../librustc_infer" }
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ rustc_errors = { path = "../librustc_errors" }
24
24
rustc_expand = { path = " ../librustc_expand" }
25
25
rustc_feature = { path = " ../librustc_feature" }
26
26
rustc_hir = { path = " ../librustc_hir" }
27
- rustc_infer = { path = " ../librustc_infer" }
28
27
rustc_metadata = { path = " ../librustc_metadata" }
29
28
rustc_session = { path = " ../librustc_session" }
30
29
rustc_span = { path = " ../librustc_span" }
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ rustc_target = { path = "../librustc_target" }
16
16
rustc_serialize = { path = " ../libserialize" , package = " serialize" }
17
17
rustc_data_structures = { path = " ../librustc_data_structures" }
18
18
rustc_span = { path = " ../librustc_span" }
19
- rustc_index = { path = " ../librustc_index" }
20
19
rustc_fs_util = { path = " ../librustc_fs_util" }
21
20
num_cpus = " 1.0"
22
21
rustc_ast = { path = " ../librustc_ast" }
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ log = { version = "0.4" }
13
13
rustc = { path = " ../librustc" }
14
14
rustc_data_structures = { path = " ../librustc_data_structures" }
15
15
rustc_hir = { path = " ../librustc_hir" }
16
- rustc_macros = { path = " ../librustc_macros" }
17
- rustc_target = { path = " ../librustc_target" }
18
16
rustc_ast = { path = " ../librustc_ast" }
19
17
rustc_span = { path = " ../librustc_span" }
20
18
smallvec = { version = " 1.0" , features = [" union" , " may_dangle" ] }
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ pub use self::types::*;
40
40
pub use self :: ColorConfig :: * ;
41
41
pub use cli:: TestOpts ;
42
42
43
+ // Suppress warning: we need this crate in the sysroot
44
+ use proc_macro as _;
45
+
43
46
// Module to be used by rustc to compile tests in libtest
44
47
pub mod test {
45
48
pub use crate :: {
Original file line number Diff line number Diff line change
1
+ // Suppress warning: we need this crate in the sysroot
2
+ use rustc_codegen_ssa;
3
+
1
4
fn main ( ) {
2
5
// Pull in jemalloc when enabled.
3
6
//
You can’t perform that action at this time.
0 commit comments