Skip to content

Commit bb48051

Browse files
authored
Rollup merge of #98067 - klensy:compiler-deps2, r=Dylan-DPC
compiler: remove unused deps Removed unused dependencies in compiler crates and moves few `libc` under `target.cfg(unix)` .
2 parents b770012 + 4ea4e2e commit bb48051

File tree

14 files changed

+6
-30
lines changed

14 files changed

+6
-30
lines changed

Cargo.lock

-14
Original file line numberDiff line numberDiff line change
@@ -3678,7 +3678,6 @@ dependencies = [
36783678
"libloading",
36793679
"measureme 10.0.0",
36803680
"rustc-demangle",
3681-
"rustc_arena",
36823681
"rustc_ast",
36833682
"rustc_attr",
36843683
"rustc_codegen_ssa",
@@ -3801,7 +3800,6 @@ dependencies = [
38013800
"rustc_ast",
38023801
"rustc_ast_pretty",
38033802
"rustc_codegen_ssa",
3804-
"rustc_const_eval",
38053803
"rustc_data_structures",
38063804
"rustc_error_codes",
38073805
"rustc_errors",
@@ -3816,7 +3814,6 @@ dependencies = [
38163814
"rustc_parse",
38173815
"rustc_plugin_impl",
38183816
"rustc_save_analysis",
3819-
"rustc_serialize",
38203817
"rustc_session",
38213818
"rustc_span",
38223819
"rustc_target",
@@ -3912,7 +3909,6 @@ dependencies = [
39123909
"rustc_ast",
39133910
"rustc_data_structures",
39143911
"rustc_error_messages",
3915-
"rustc_feature",
39163912
"rustc_index",
39173913
"rustc_macros",
39183914
"rustc_serialize",
@@ -3973,7 +3969,6 @@ dependencies = [
39733969
"rustc_macros",
39743970
"rustc_middle",
39753971
"rustc_serialize",
3976-
"rustc_session",
39773972
"rustc_span",
39783973
"rustc_target",
39793974
"smallvec",
@@ -4207,7 +4202,6 @@ dependencies = [
42074202
"rustc_index",
42084203
"rustc_middle",
42094204
"rustc_serialize",
4210-
"rustc_session",
42114205
"rustc_span",
42124206
"rustc_target",
42134207
"smallvec",
@@ -4229,7 +4223,6 @@ dependencies = [
42294223
"rustc_index",
42304224
"rustc_middle",
42314225
"rustc_mir_dataflow",
4232-
"rustc_query_system",
42334226
"rustc_serialize",
42344227
"rustc_session",
42354228
"rustc_span",
@@ -4244,7 +4237,6 @@ name = "rustc_monomorphize"
42444237
version = "0.0.0"
42454238
dependencies = [
42464239
"rustc_data_structures",
4247-
"rustc_errors",
42484240
"rustc_hir",
42494241
"rustc_index",
42504242
"rustc_middle",
@@ -4296,7 +4288,6 @@ dependencies = [
42964288
"rustc_index",
42974289
"rustc_lexer",
42984290
"rustc_middle",
4299-
"rustc_parse",
43004291
"rustc_serialize",
43014292
"rustc_session",
43024293
"rustc_span",
@@ -4311,10 +4302,8 @@ dependencies = [
43114302
"libloading",
43124303
"rustc_ast",
43134304
"rustc_errors",
4314-
"rustc_hir",
43154305
"rustc_lint",
43164306
"rustc_metadata",
4317-
"rustc_middle",
43184307
"rustc_session",
43194308
"rustc_span",
43204309
]
@@ -4353,7 +4342,6 @@ dependencies = [
43534342
"rustc_serialize",
43544343
"rustc_session",
43554344
"rustc_span",
4356-
"rustc_type_ir",
43574345
"tracing",
43584346
]
43594347

@@ -4375,7 +4363,6 @@ dependencies = [
43754363
"rustc_session",
43764364
"rustc_span",
43774365
"rustc_target",
4378-
"rustc_type_ir",
43794366
"smallvec",
43804367
"tracing",
43814368
]
@@ -4495,7 +4482,6 @@ dependencies = [
44954482
"rustc_data_structures",
44964483
"rustc_hir",
44974484
"rustc_middle",
4498-
"rustc_query_system",
44994485
"rustc_session",
45004486
"rustc_span",
45014487
"rustc_target",

compiler/rustc_codegen_llvm/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ measureme = "10.0.0"
1616
tracing = "0.1"
1717
rustc_middle = { path = "../rustc_middle" }
1818
rustc-demangle = "0.1.21"
19-
rustc_arena = { path = "../rustc_arena" }
2019
rustc_attr = { path = "../rustc_attr" }
2120
rustc_codegen_ssa = { path = "../rustc_codegen_ssa" }
2221
rustc_symbol_mangling = { path = "../rustc_symbol_mangling" }

compiler/rustc_driver/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ edition = "2021"
77
crate-type = ["dylib"]
88

99
[dependencies]
10-
libc = "0.2"
1110
tracing = { version = "0.1.28" }
1211
serde_json = "1.0.59"
1312
rustc_log = { path = "../rustc_log" }
@@ -21,19 +20,20 @@ rustc_feature = { path = "../rustc_feature" }
2120
rustc_hir = { path = "../rustc_hir" }
2221
rustc_hir_pretty = { path = "../rustc_hir_pretty" }
2322
rustc_metadata = { path = "../rustc_metadata" }
24-
rustc_const_eval = { path = "../rustc_const_eval" }
2523
rustc_parse = { path = "../rustc_parse" }
2624
rustc_plugin_impl = { path = "../rustc_plugin_impl" }
2725
rustc_save_analysis = { path = "../rustc_save_analysis" }
2826
rustc_codegen_ssa = { path = "../rustc_codegen_ssa" }
2927
rustc_session = { path = "../rustc_session" }
3028
rustc_error_codes = { path = "../rustc_error_codes" }
3129
rustc_interface = { path = "../rustc_interface" }
32-
rustc_serialize = { path = "../rustc_serialize" }
3330
rustc_ast = { path = "../rustc_ast" }
3431
rustc_span = { path = "../rustc_span" }
3532
rustc_typeck = { path = "../rustc_typeck" }
3633

34+
[target.'cfg(unix)'.dependencies]
35+
libc = "0.2"
36+
3737
[target.'cfg(windows)'.dependencies]
3838
winapi = { version = "0.3", features = ["consoleapi", "debugapi", "processenv"] }
3939

compiler/rustc_hir/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ doctest = false
88

99
[dependencies]
1010
rustc_target = { path = "../rustc_target" }
11-
rustc_feature = { path = "../rustc_feature" }
1211
rustc_macros = { path = "../rustc_macros" }
1312
rustc_data_structures = { path = "../rustc_data_structures" }
1413
rustc_error_messages = { path = "../rustc_error_messages" }

compiler/rustc_infer/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ rustc_errors = { path = "../rustc_errors" }
1414
rustc_hir = { path = "../rustc_hir" }
1515
rustc_index = { path = "../rustc_index" }
1616
rustc_macros = { path = "../rustc_macros" }
17-
rustc_session = { path = "../rustc_session" }
1817
rustc_serialize = { path = "../rustc_serialize" }
1918
rustc_span = { path = "../rustc_span" }
2019
rustc_target = { path = "../rustc_target" }

compiler/rustc_interface/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ edition = "2021"
77
doctest = false
88

99
[dependencies]
10-
libc = "0.2"
1110
libloading = "0.7.1"
1211
tracing = "0.1"
1312
rustc-rayon-core = { version = "0.4.0", optional = true }
@@ -49,6 +48,9 @@ rustc_trait_selection = { path = "../rustc_trait_selection" }
4948
rustc_ty_utils = { path = "../rustc_ty_utils" }
5049
tempfile = "3.2"
5150

51+
[target.'cfg(unix)'.dependencies]
52+
libc = "0.2"
53+
5254
[target.'cfg(windows)'.dependencies]
5355
winapi = { version = "0.3", features = ["libloaderapi"] }
5456

compiler/rustc_mir_dataflow/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ rustc_hir = { path = "../rustc_hir" }
1818
rustc_index = { path = "../rustc_index" }
1919
rustc_middle = { path = "../rustc_middle" }
2020
rustc_serialize = { path = "../rustc_serialize" }
21-
rustc_session = { path = "../rustc_session" }
2221
rustc_target = { path = "../rustc_target" }
2322
rustc_span = { path = "../rustc_span" }

compiler/rustc_mir_transform/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ rustc_index = { path = "../rustc_index" }
1919
rustc_middle = { path = "../rustc_middle" }
2020
rustc_const_eval = { path = "../rustc_const_eval" }
2121
rustc_mir_dataflow = { path = "../rustc_mir_dataflow" }
22-
rustc_query_system = { path = "../rustc_query_system" }
2322
rustc_serialize = { path = "../rustc_serialize" }
2423
rustc_session = { path = "../rustc_session" }
2524
rustc_target = { path = "../rustc_target" }

compiler/rustc_monomorphize/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ doctest = false
1010
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
1111
tracing = "0.1"
1212
rustc_data_structures = { path = "../rustc_data_structures" }
13-
rustc_errors = { path = "../rustc_errors" }
1413
rustc_hir = { path = "../rustc_hir" }
1514
rustc_index = { path = "../rustc_index" }
1615
rustc_middle = { path = "../rustc_middle" }

compiler/rustc_passes/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ rustc_errors = { path = "../rustc_errors" }
1212
rustc_expand = { path = "../rustc_expand" }
1313
rustc_hir = { path = "../rustc_hir" }
1414
rustc_index = { path = "../rustc_index" }
15-
rustc_parse = { path = "../rustc_parse" }
1615
rustc_session = { path = "../rustc_session" }
1716
rustc_target = { path = "../rustc_target" }
1817
rustc_ast = { path = "../rustc_ast" }

compiler/rustc_plugin_impl/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ doctest = false
99

1010
[dependencies]
1111
libloading = "0.7.1"
12-
rustc_middle = { path = "../rustc_middle" }
1312
rustc_errors = { path = "../rustc_errors" }
14-
rustc_hir = { path = "../rustc_hir" }
1513
rustc_lint = { path = "../rustc_lint" }
1614
rustc_metadata = { path = "../rustc_metadata" }
1715
rustc_ast = { path = "../rustc_ast" }

compiler/rustc_query_impl/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ rustc_query_system = { path = "../rustc_query_system" }
2020
rustc_serialize = { path = "../rustc_serialize" }
2121
rustc_session = { path = "../rustc_session" }
2222
rustc_span = { path = "../rustc_span" }
23-
rustc_type_ir = { path = "../rustc_type_ir" }
2423
tracing = "0.1"
2524

2625
[features]

compiler/rustc_query_system/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ rustc_serialize = { path = "../rustc_serialize" }
2121
rustc_session = { path = "../rustc_session" }
2222
rustc_span = { path = "../rustc_span" }
2323
rustc_target = { path = "../rustc_target" }
24-
rustc_type_ir = { path = "../rustc_type_ir" }
2524
parking_lot = "0.11"
2625
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
2726

compiler/rustc_symbol_mangling/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ rustc_middle = { path = "../rustc_middle" }
1616
rustc_hir = { path = "../rustc_hir" }
1717
rustc_target = { path = "../rustc_target" }
1818
rustc_data_structures = { path = "../rustc_data_structures" }
19-
rustc_query_system = { path = "../rustc_query_system" }
2019
rustc_session = { path = "../rustc_session" }

0 commit comments

Comments
 (0)