Skip to content

Commit 1034282

Browse files
committed
Auto merge of #86617 - joshtriplett:prune-dependencies, r=Mark-Simulacrum
Remove unused dependencies from compiler crates Various compiler crates have dependencies that they don't appear to use. I used some scripting to detect such dependencies, filtered them based on some manual review, and removed those that do indeed appear to be entirely unused.
2 parents 866335b + 7a9d419 commit 1034282

File tree

14 files changed

+0
-44
lines changed

14 files changed

+0
-44
lines changed

Cargo.lock

-22
Original file line numberDiff line numberDiff line change
@@ -3714,10 +3714,8 @@ dependencies = [
37143714
"rustc_codegen_ssa",
37153715
"rustc_data_structures",
37163716
"rustc_errors",
3717-
"rustc_feature",
37183717
"rustc_fs_util",
37193718
"rustc_hir",
3720-
"rustc_incremental",
37213719
"rustc_index",
37223720
"rustc_llvm",
37233721
"rustc_metadata",
@@ -3769,7 +3767,6 @@ dependencies = [
37693767
"arrayvec",
37703768
"bitflags",
37713769
"cfg-if 0.1.10",
3772-
"crossbeam-utils 0.8.3",
37733770
"ena",
37743771
"indexmap",
37753772
"jobserver",
@@ -3812,15 +3809,13 @@ dependencies = [
38123809
"rustc_metadata",
38133810
"rustc_middle",
38143811
"rustc_mir",
3815-
"rustc_mir_build",
38163812
"rustc_parse",
38173813
"rustc_plugin_impl",
38183814
"rustc_save_analysis",
38193815
"rustc_serialize",
38203816
"rustc_session",
38213817
"rustc_span",
38223818
"rustc_target",
3823-
"rustc_typeck",
38243819
"tracing",
38253820
"tracing-subscriber",
38263821
"tracing-tree",
@@ -3946,10 +3941,8 @@ dependencies = [
39463941
name = "rustc_infer"
39473942
version = "0.0.0"
39483943
dependencies = [
3949-
"rustc_ast",
39503944
"rustc_data_structures",
39513945
"rustc_errors",
3952-
"rustc_graphviz",
39533946
"rustc_hir",
39543947
"rustc_index",
39553948
"rustc_macros",
@@ -3981,7 +3974,6 @@ dependencies = [
39813974
"rustc_expand",
39823975
"rustc_hir",
39833976
"rustc_incremental",
3984-
"rustc_index",
39853977
"rustc_lint",
39863978
"rustc_metadata",
39873979
"rustc_middle",
@@ -4049,7 +4041,6 @@ dependencies = [
40494041
"rustc_serialize",
40504042
"rustc_span",
40514043
"rustc_target",
4052-
"tracing",
40534044
]
40544045

40554046
[[package]]
@@ -4093,7 +4084,6 @@ dependencies = [
40934084
"rustc_target",
40944085
"smallvec",
40954086
"snap",
4096-
"stable_deref_trait",
40974087
"tracing",
40984088
"winapi 0.3.9",
40994089
]
@@ -4104,7 +4094,6 @@ version = "0.0.0"
41044094
dependencies = [
41054095
"bitflags",
41064096
"chalk-ir",
4107-
"measureme",
41084097
"polonius-engine",
41094098
"rustc-rayon-core",
41104099
"rustc_apfloat",
@@ -4194,7 +4183,6 @@ dependencies = [
41944183
"rustc_lexer",
41954184
"rustc_session",
41964185
"rustc_span",
4197-
"smallvec",
41984186
"tracing",
41994187
"unicode-normalization",
42004188
]
@@ -4224,7 +4212,6 @@ dependencies = [
42244212
"rustc_session",
42254213
"rustc_span",
42264214
"rustc_target",
4227-
"rustc_trait_selection",
42284215
"tracing",
42294216
]
42304217

@@ -4264,20 +4251,13 @@ version = "0.0.0"
42644251
dependencies = [
42654252
"measureme",
42664253
"rustc-rayon-core",
4267-
"rustc_ast",
4268-
"rustc_attr",
42694254
"rustc_data_structures",
42704255
"rustc_errors",
4271-
"rustc_feature",
42724256
"rustc_hir",
4273-
"rustc_index",
4274-
"rustc_macros",
42754257
"rustc_middle",
42764258
"rustc_query_system",
42774259
"rustc_serialize",
4278-
"rustc_session",
42794260
"rustc_span",
4280-
"rustc_target",
42814261
"tracing",
42824262
]
42834263

@@ -4355,7 +4335,6 @@ dependencies = [
43554335
name = "rustc_session"
43564336
version = "0.0.0"
43574337
dependencies = [
4358-
"bitflags",
43594338
"getopts",
43604339
"num_cpus",
43614340
"rustc_ast",
@@ -4395,7 +4374,6 @@ version = "0.0.0"
43954374
dependencies = [
43964375
"punycode",
43974376
"rustc-demangle",
4398-
"rustc_ast",
43994377
"rustc_data_structures",
44004378
"rustc_hir",
44014379
"rustc_middle",

compiler/rustc_codegen_llvm/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ rustc_attr = { path = "../rustc_attr" }
2121
rustc_codegen_ssa = { path = "../rustc_codegen_ssa" }
2222
rustc_data_structures = { path = "../rustc_data_structures" }
2323
rustc_errors = { path = "../rustc_errors" }
24-
rustc_feature = { path = "../rustc_feature" }
2524
rustc_fs_util = { path = "../rustc_fs_util" }
2625
rustc_hir = { path = "../rustc_hir" }
27-
rustc_incremental = { path = "../rustc_incremental" }
2826
rustc_index = { path = "../rustc_index" }
2927
rustc_llvm = { path = "../rustc_llvm" }
3028
rustc_metadata = { path = "../rustc_metadata" }

compiler/rustc_data_structures/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ rustc_serialize = { path = "../rustc_serialize" }
1717
rustc_macros = { path = "../rustc_macros" }
1818
rustc_graphviz = { path = "../rustc_graphviz" }
1919
cfg-if = "0.1.2"
20-
crossbeam-utils = { version = "0.8", features = ["nightly"] }
2120
stable_deref_trait = "1.0.0"
2221
rayon = { version = "0.3.1", package = "rustc-rayon" }
2322
rayon-core = { version = "0.3.1", package = "rustc-rayon-core" }

compiler/rustc_driver/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ rustc_interface = { path = "../rustc_interface" }
3434
rustc_serialize = { path = "../rustc_serialize" }
3535
rustc_ast = { path = "../rustc_ast" }
3636
rustc_span = { path = "../rustc_span" }
37-
rustc_mir_build = { path = "../rustc_mir_build" }
38-
rustc_typeck = { path = "../rustc_typeck" }
3937

4038
[target.'cfg(windows)'.dependencies]
4139
winapi = { version = "0.3", features = ["consoleapi", "debugapi", "processenv"] }

compiler/rustc_infer/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ edition = "2018"
88
doctest = false
99

1010
[dependencies]
11-
rustc_graphviz = { path = "../rustc_graphviz" }
1211
tracing = "0.1"
1312
rustc_middle = { path = "../rustc_middle" }
1413
rustc_data_structures = { path = "../rustc_data_structures" }
@@ -21,4 +20,3 @@ rustc_serialize = { path = "../rustc_serialize" }
2120
rustc_span = { path = "../rustc_span" }
2221
rustc_target = { path = "../rustc_target" }
2322
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
24-
rustc_ast = { path = "../rustc_ast" }

compiler/rustc_interface/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ rustc_codegen_ssa = { path = "../rustc_codegen_ssa" }
3131
rustc_symbol_mangling = { path = "../rustc_symbol_mangling" }
3232
rustc_codegen_llvm = { path = "../rustc_codegen_llvm", optional = true }
3333
rustc_hir = { path = "../rustc_hir" }
34-
rustc_index = { path = "../rustc_index" }
3534
rustc_metadata = { path = "../rustc_metadata" }
3635
rustc_mir = { path = "../rustc_mir" }
3736
rustc_mir_build = { path = "../rustc_mir_build" }

compiler/rustc_lint_defs/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "0.0.0"
55
edition = "2018"
66

77
[dependencies]
8-
log = { package = "tracing", version = "0.1" }
98
rustc_ast = { path = "../rustc_ast" }
109
rustc_data_structures = { path = "../rustc_data_structures" }
1110
rustc_span = { path = "../rustc_span" }

compiler/rustc_metadata/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ rustc_target = { path = "../rustc_target" }
2323
rustc_index = { path = "../rustc_index" }
2424
rustc_macros = { path = "../rustc_macros" }
2525
rustc_serialize = { path = "../rustc_serialize" }
26-
stable_deref_trait = "1.0.0"
2726
rustc_ast = { path = "../rustc_ast" }
2827
rustc_expand = { path = "../rustc_expand" }
2928
rustc_span = { path = "../rustc_span" }

compiler/rustc_middle/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@ rustc_ast = { path = "../rustc_ast" }
2828
rustc_span = { path = "../rustc_span" }
2929
chalk-ir = "0.55.0"
3030
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
31-
measureme = "9.1.0"
3231
rustc_session = { path = "../rustc_session" }
3332
rustc_type_ir = { path = "../rustc_type_ir" }

compiler/rustc_parse/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ rustc_session = { path = "../rustc_session" }
1919
rustc_span = { path = "../rustc_span" }
2020
rustc_ast = { path = "../rustc_ast" }
2121
unicode-normalization = "0.1.11"
22-
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }

compiler/rustc_passes/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ rustc_target = { path = "../rustc_target" }
1717
rustc_ast = { path = "../rustc_ast" }
1818
rustc_serialize = { path = "../rustc_serialize" }
1919
rustc_span = { path = "../rustc_span" }
20-
rustc_trait_selection = { path = "../rustc_trait_selection" }
2120
rustc_lexer = { path = "../rustc_lexer" }
2221
rustc_ast_pretty = { path = "../rustc_ast_pretty" }

compiler/rustc_query_impl/Cargo.toml

-7
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,10 @@ doctest = false
1111
measureme = "9.0.0"
1212
rustc-rayon-core = "0.3.1"
1313
tracing = "0.1"
14-
rustc_ast = { path = "../rustc_ast" }
15-
rustc_attr = { path = "../rustc_attr" }
1614
rustc_data_structures = { path = "../rustc_data_structures" }
1715
rustc_errors = { path = "../rustc_errors" }
18-
rustc_feature = { path = "../rustc_feature" }
1916
rustc_hir = { path = "../rustc_hir" }
20-
rustc_index = { path = "../rustc_index" }
21-
rustc_macros = { path = "../rustc_macros" }
2217
rustc_middle = { path = "../rustc_middle" }
2318
rustc_query_system = { path = "../rustc_query_system" }
2419
rustc_span = { path = "../rustc_span" }
2520
rustc_serialize = { path = "../rustc_serialize" }
26-
rustc_session = { path = "../rustc_session" }
27-
rustc_target = { path = "../rustc_target" }

compiler/rustc_session/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "0.0.0"
55
edition = "2018"
66

77
[dependencies]
8-
bitflags = "1.2.1"
98
getopts = "0.2"
109
rustc_macros = { path = "../rustc_macros" }
1110
tracing = "0.1"

compiler/rustc_symbol_mangling/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ tracing = "0.1"
1212
punycode = "0.4.0"
1313
rustc-demangle = "0.1.18"
1414

15-
rustc_ast = { path = "../rustc_ast" }
1615
rustc_span = { path = "../rustc_span" }
1716
rustc_middle = { path = "../rustc_middle" }
1817
rustc_hir = { path = "../rustc_hir" }

0 commit comments

Comments
 (0)