Skip to content

Commit 7c91a50

Browse files
committed
Remove some unused crate dependencies.
I found these by setting the `unused_crate_dependencies` lint temporarily to `Warn`.
1 parent a330e49 commit 7c91a50

File tree

14 files changed

+9
-48
lines changed

14 files changed

+9
-48
lines changed

Cargo.lock

-18
Original file line numberDiff line numberDiff line change
@@ -3517,7 +3517,6 @@ dependencies = [
35173517
"rustc_macros",
35183518
"rustc_serialize",
35193519
"rustc_span",
3520-
"smallvec",
35213520
]
35223521

35233522
[[package]]
@@ -3598,7 +3597,6 @@ dependencies = [
35983597
"icu_locid",
35993598
"icu_locid_transform",
36003599
"icu_provider",
3601-
"icu_provider_adapters",
36023600
"zerovec",
36033601
]
36043602

@@ -3779,7 +3777,6 @@ dependencies = [
37793777
"portable-atomic",
37803778
"rustc-hash",
37813779
"rustc-rayon",
3782-
"rustc-rayon-core",
37833780
"rustc_arena",
37843781
"rustc_graphviz",
37853782
"rustc_index",
@@ -3820,7 +3817,6 @@ dependencies = [
38203817
"rustc_expand",
38213818
"rustc_feature",
38223819
"rustc_fluent_macro",
3823-
"rustc_hir",
38243820
"rustc_hir_analysis",
38253821
"rustc_hir_pretty",
38263822
"rustc_hir_typeck",
@@ -4083,7 +4079,6 @@ dependencies = [
40834079
"proc-macro2",
40844080
"quote",
40854081
"syn 2.0.64",
4086-
"synstructure",
40874082
]
40884083

40894084
[[package]]
@@ -4274,7 +4269,6 @@ dependencies = [
42744269
"field-offset",
42754270
"gsgdt",
42764271
"polonius-engine",
4277-
"rustc-rayon",
42784272
"rustc-rayon-core",
42794273
"rustc_apfloat",
42804274
"rustc_arena",
@@ -4307,7 +4301,6 @@ dependencies = [
43074301
name = "rustc_mir_build"
43084302
version = "0.0.0"
43094303
dependencies = [
4310-
"either",
43114304
"itertools 0.12.1",
43124305
"rustc_apfloat",
43134306
"rustc_arena",
@@ -4326,7 +4319,6 @@ dependencies = [
43264319
"rustc_span",
43274320
"rustc_target",
43284321
"rustc_trait_selection",
4329-
"smallvec",
43304322
"tracing",
43314323
]
43324324

@@ -4401,13 +4393,7 @@ dependencies = [
44014393
name = "rustc_next_trait_solver"
44024394
version = "0.0.0"
44034395
dependencies = [
4404-
"derivative",
4405-
"rustc_ast_ir",
4406-
"rustc_data_structures",
4407-
"rustc_macros",
4408-
"rustc_serialize",
44094396
"rustc_type_ir",
4410-
"rustc_type_ir_macros",
44114397
]
44124398

44134399
[[package]]
@@ -4512,7 +4498,6 @@ version = "0.0.0"
45124498
dependencies = [
45134499
"field-offset",
45144500
"measureme",
4515-
"rustc-rayon-core",
45164501
"rustc_data_structures",
45174502
"rustc_errors",
45184503
"rustc_hir",
@@ -5218,7 +5203,6 @@ name = "stable_mir"
52185203
version = "0.1.0-preview"
52195204
dependencies = [
52205205
"scoped-tls",
5221-
"tracing",
52225206
]
52235207

52245208
[[package]]
@@ -5492,8 +5476,6 @@ dependencies = [
54925476
"core",
54935477
"getopts",
54945478
"libc",
5495-
"panic_abort",
5496-
"panic_unwind",
54975479
"std",
54985480
]
54995481

compiler/rustc_ast_ir/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ rustc_data_structures = { path = "../rustc_data_structures", optional = true }
99
rustc_macros = { path = "../rustc_macros", optional = true }
1010
rustc_serialize = { path = "../rustc_serialize", optional = true }
1111
rustc_span = { path = "../rustc_span", optional = true }
12-
smallvec = { version = "1.8.1" }
1312
# tidy-alphabetical-end
1413

1514
[features]

compiler/rustc_baked_icu_data/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ icu_list = "1.2"
99
icu_locid = "1.2"
1010
icu_locid_transform = "1.3.2"
1111
icu_provider = "1.2"
12-
icu_provider_adapters = "1.2"
1312
zerovec = "0.10.0"
1413
# tidy-alphabetical-end
1514

compiler/rustc_data_structures/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ libc = "0.2"
1616
measureme = "11"
1717
rustc-hash = "1.1.0"
1818
rustc-rayon = { version = "0.5.0", optional = true }
19-
rustc-rayon-core = { version = "0.5.0", optional = true }
2019
rustc_arena = { path = "../rustc_arena" }
2120
rustc_graphviz = { path = "../rustc_graphviz" }
2221
rustc_index = { path = "../rustc_index", package = "rustc_index" }
@@ -52,5 +51,5 @@ portable-atomic = "1.5.1"
5251

5352
[features]
5453
# tidy-alphabetical-start
55-
rustc_use_parallel_compiler = ["indexmap/rustc-rayon", "rustc-rayon", "rustc-rayon-core"]
54+
rustc_use_parallel_compiler = ["indexmap/rustc-rayon", "rustc-rayon"]
5655
# tidy-alphabetical-end

compiler/rustc_driver_impl/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ rustc_errors = { path = "../rustc_errors" }
1919
rustc_expand = { path = "../rustc_expand" }
2020
rustc_feature = { path = "../rustc_feature" }
2121
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
22-
rustc_hir = { path = "../rustc_hir" }
2322
rustc_hir_analysis = { path = "../rustc_hir_analysis" }
2423
rustc_hir_pretty = { path = "../rustc_hir_pretty" }
2524
rustc_hir_typeck = { path = "../rustc_hir_typeck" }

compiler/rustc_index_macros/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ edition = "2021"
77
proc-macro = true
88

99
[dependencies]
10-
synstructure = "0.13.0"
1110
syn = { version = "2.0.9", features = ["full"] }
1211
proc-macro2 = "1"
1312
quote = "1"
1413

1514
[features]
1615
default = ["nightly"]
17-
nightly = []
16+
nightly = []

compiler/rustc_middle/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ either = "1.5.0"
1111
field-offset = "0.3.5"
1212
gsgdt = "0.1.2"
1313
polonius-engine = "0.13.0"
14-
rustc-rayon = { version = "0.5.0", optional = true }
1514
rustc-rayon-core = { version = "0.5.0", optional = true }
1615
rustc_apfloat = "0.2.0"
1716
rustc_arena = { path = "../rustc_arena" }
@@ -42,5 +41,5 @@ tracing = "0.1"
4241

4342
[features]
4443
# tidy-alphabetical-start
45-
rustc_use_parallel_compiler = ["rustc-rayon", "rustc-rayon-core"]
44+
rustc_use_parallel_compiler = ["rustc-rayon-core"]
4645
# tidy-alphabetical-end

compiler/rustc_mir_build/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ edition = "2021"
55

66
[dependencies]
77
# tidy-alphabetical-start
8-
either = "1"
98
itertools = "0.12"
109
rustc_apfloat = "0.2.0"
1110
rustc_arena = { path = "../rustc_arena" }
@@ -24,6 +23,5 @@ rustc_session = { path = "../rustc_session" }
2423
rustc_span = { path = "../rustc_span" }
2524
rustc_target = { path = "../rustc_target" }
2625
rustc_trait_selection = { path = "../rustc_trait_selection" }
27-
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
2826
tracing = "0.1"
2927
# tidy-alphabetical-end

compiler/rustc_next_trait_solver/Cargo.toml

+1-13
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,7 @@ edition = "2021"
55

66
[dependencies]
77
rustc_type_ir = { path = "../rustc_type_ir", default-features = false }
8-
derivative = "2.2.0"
9-
rustc_macros = { path = "../rustc_macros", optional = true }
10-
rustc_type_ir_macros = { path = "../rustc_type_ir_macros" }
11-
rustc_serialize = { path = "../rustc_serialize", optional = true }
12-
rustc_data_structures = { path = "../rustc_data_structures", optional = true }
13-
rustc_ast_ir = { path = "../rustc_ast_ir", default-features = false }
148

159
[features]
1610
default = ["nightly"]
17-
nightly = [
18-
"rustc_type_ir/nightly",
19-
"rustc_macros",
20-
"rustc_serialize",
21-
"rustc_data_structures",
22-
"rustc_ast_ir/nightly",
23-
]
11+
nightly = ["rustc_type_ir/nightly"]

compiler/rustc_query_impl/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ edition = "2021"
77
# tidy-alphabetical-start
88
field-offset = "0.3.5"
99
measureme = "11"
10-
rustc-rayon-core = { version = "0.5.0", optional = true }
1110
rustc_data_structures = { path = "../rustc_data_structures" }
1211
rustc_errors = { path = "../rustc_errors" }
1312
rustc_hir = { path = "../rustc_hir" }
@@ -23,5 +22,5 @@ tracing = "0.1"
2322

2423
[features]
2524
# tidy-alphabetical-start
26-
rustc_use_parallel_compiler = ["rustc-rayon-core", "rustc_query_system/rustc_use_parallel_compiler"]
25+
rustc_use_parallel_compiler = ["rustc_query_system/rustc_use_parallel_compiler"]
2726
# tidy-alphabetical-end

compiler/stable_mir/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ version = "0.1.0-preview"
44
edition = "2021"
55

66
[dependencies]
7-
tracing = "0.1"
87
scoped-tls = "1.0"

library/panic_unwind/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ unwind = { path = "../unwind" }
1818
compiler_builtins = "0.1.0"
1919
cfg-if = "1.0"
2020

21-
[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
21+
[target.'cfg(target_os = "emscripten")'.dependencies]
2222
libc = { version = "0.2", default-features = false }

library/sysroot/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
// This is intentionally empty since this crate is only used to depend on other library crates.
2+
3+
use proc_macro as _;
4+
use test as _;

library/test/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ edition = "2021"
77
getopts = { version = "0.2.21", features = ['rustc-dep-of-std'] }
88
std = { path = "../std" }
99
core = { path = "../core" }
10-
panic_unwind = { path = "../panic_unwind" }
11-
panic_abort = { path = "../panic_abort" }
1210

1311
[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
1412
libc = { version = "0.2.150", default-features = false }

0 commit comments

Comments
 (0)