Skip to content

Commit 3db14a8

Browse files
committed
Cleanup unused crates
1 parent 5c718e6 commit 3db14a8

File tree

14 files changed

+19
-18
lines changed

14 files changed

+19
-18
lines changed

Cargo.lock

-9
Original file line numberDiff line numberDiff line change
@@ -3505,7 +3505,6 @@ version = "0.0.0"
35053505
dependencies = [
35063506
"log",
35073507
"rustc_ast",
3508-
"rustc_data_structures",
35093508
"rustc_span",
35103509
]
35113510

@@ -3522,7 +3521,6 @@ dependencies = [
35223521
"rustc_session",
35233522
"rustc_span",
35243523
"serialize",
3525-
"smallvec 1.0.0",
35263524
]
35273525

35283526
[[package]]
@@ -3781,7 +3779,6 @@ dependencies = [
37813779
"rustc_ast",
37823780
"rustc_attr",
37833781
"rustc_data_structures",
3784-
"rustc_error_codes",
37853782
"rustc_errors",
37863783
"rustc_hir",
37873784
"rustc_index",
@@ -3948,7 +3945,6 @@ dependencies = [
39483945
"rustc_hir",
39493946
"rustc_index",
39503947
"rustc_infer",
3951-
"rustc_macros",
39523948
"rustc_session",
39533949
"rustc_span",
39543950
"rustc_target",
@@ -3985,7 +3981,6 @@ dependencies = [
39853981
"rustc_attr",
39863982
"rustc_data_structures",
39873983
"rustc_errors",
3988-
"rustc_feature",
39893984
"rustc_hir",
39903985
"rustc_index",
39913986
"rustc_infer",
@@ -4039,7 +4034,6 @@ dependencies = [
40394034
"rustc_expand",
40404035
"rustc_feature",
40414036
"rustc_hir",
4042-
"rustc_infer",
40434037
"rustc_metadata",
40444038
"rustc_session",
40454039
"rustc_span",
@@ -4075,7 +4069,6 @@ dependencies = [
40754069
"rustc_errors",
40764070
"rustc_feature",
40774071
"rustc_fs_util",
4078-
"rustc_index",
40794072
"rustc_span",
40804073
"rustc_target",
40814074
"serialize",
@@ -4129,9 +4122,7 @@ dependencies = [
41294122
"rustc_data_structures",
41304123
"rustc_hir",
41314124
"rustc_infer",
4132-
"rustc_macros",
41334125
"rustc_span",
4134-
"rustc_target",
41354126
"smallvec 1.0.0",
41364127
]
41374128

src/librustc/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,8 @@ pub mod util {
9191

9292
// Allows macros to refer to this crate as `::rustc`
9393
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 _;

src/librustc_ast_pretty/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ doctest = false
1212
[dependencies]
1313
log = "0.4"
1414
rustc_span = { path = "../librustc_span" }
15-
rustc_data_structures = { path = "../librustc_data_structures" }
1615
rustc_ast = { path = "../librustc_ast" }

src/librustc_attr/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ rustc_span = { path = "../librustc_span" }
1717
rustc_data_structures = { path = "../librustc_data_structures" }
1818
rustc_feature = { path = "../librustc_feature" }
1919
rustc_macros = { path = "../librustc_macros" }
20-
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
2120
rustc_session = { path = "../librustc_session" }
2221
rustc_ast = { path = "../librustc_ast" }

src/librustc_data_structures/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
#![feature(thread_id_value)]
2525
#![allow(rustc::default_hash_types)]
2626

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+
2732
#[macro_use]
2833
extern crate log;
2934
#[cfg(unix)]

src/librustc_infer/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ rustc_attr = { path = "../librustc_attr" }
1717
rustc = { path = "../librustc" }
1818
rustc_data_structures = { path = "../librustc_data_structures" }
1919
rustc_errors = { path = "../librustc_errors" }
20-
rustc_error_codes = { path = "../librustc_error_codes" }
2120
rustc_hir = { path = "../librustc_hir" }
2221
rustc_index = { path = "../librustc_index" }
2322
rustc_macros = { path = "../librustc_macros" }

src/librustc_interface/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ pub use queries::Queries;
2121

2222
#[cfg(test)]
2323
mod tests;
24+
25+
// Suppress warning: this crate will be unused when cfg(parallel_compiler) is not enable
26+
use rayon as _;

src/librustc_mir_build/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ rustc_index = { path = "../librustc_index" }
2020
rustc_errors = { path = "../librustc_errors" }
2121
rustc_hir = { path = "../librustc_hir" }
2222
rustc_infer = { path = "../librustc_infer" }
23-
rustc_macros = { path = "../librustc_macros" }
2423
rustc_serialize = { path = "../libserialize", package = "serialize" }
2524
rustc_session = { path = "../librustc_session" }
2625
rustc_span = { path = "../librustc_span" }

src/librustc_passes/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ rustc = { path = "../librustc" }
1414
rustc_attr = { path = "../librustc_attr" }
1515
rustc_data_structures = { path = "../librustc_data_structures" }
1616
rustc_errors = { path = "../librustc_errors" }
17-
rustc_feature = { path = "../librustc_feature" }
1817
rustc_hir = { path = "../librustc_hir" }
1918
rustc_index = { path = "../librustc_index" }
2019
rustc_infer = { path = "../librustc_infer" }

src/librustc_resolve/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ rustc_errors = { path = "../librustc_errors" }
2424
rustc_expand = { path = "../librustc_expand" }
2525
rustc_feature = { path = "../librustc_feature" }
2626
rustc_hir = { path = "../librustc_hir" }
27-
rustc_infer = { path = "../librustc_infer" }
2827
rustc_metadata = { path = "../librustc_metadata" }
2928
rustc_session = { path = "../librustc_session" }
3029
rustc_span = { path = "../librustc_span" }

src/librustc_session/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ rustc_target = { path = "../librustc_target" }
1616
rustc_serialize = { path = "../libserialize", package = "serialize" }
1717
rustc_data_structures = { path = "../librustc_data_structures" }
1818
rustc_span = { path = "../librustc_span" }
19-
rustc_index = { path = "../librustc_index" }
2019
rustc_fs_util = { path = "../librustc_fs_util" }
2120
num_cpus = "1.0"
2221
rustc_ast = { path = "../librustc_ast" }

src/librustc_traits/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ log = { version = "0.4" }
1313
rustc = { path = "../librustc" }
1414
rustc_data_structures = { path = "../librustc_data_structures" }
1515
rustc_hir = { path = "../librustc_hir" }
16-
rustc_macros = { path = "../librustc_macros" }
17-
rustc_target = { path = "../librustc_target" }
1816
rustc_ast = { path = "../librustc_ast" }
1917
rustc_span = { path = "../librustc_span" }
2018
smallvec = { version = "1.0", features = ["union", "may_dangle"] }

src/libtest/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ pub use self::types::*;
4040
pub use self::ColorConfig::*;
4141
pub use cli::TestOpts;
4242

43+
// Suppress warning: we need this crate in the sysroot
44+
use proc_macro as _;
45+
4346
// Module to be used by rustc to compile tests in libtest
4447
pub mod test {
4548
pub use crate::{

src/rustc/rustc.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Suppress warning: we need this crate in the sysroot
2+
use rustc_codegen_ssa;
3+
14
fn main() {
25
// Pull in jemalloc when enabled.
36
//

0 commit comments

Comments
 (0)