Skip to content

Commit c1e3d55

Browse files
committed
Move rustc_infer::traits to new crate rustc_trait_selection.
1 parent 21d4e06 commit c1e3d55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+64
-0
lines changed

Cargo.lock

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3826,6 +3826,7 @@ dependencies = [
38263826
"rustc_session",
38273827
"rustc_span",
38283828
"rustc_target",
3829+
"rustc_trait_selection",
38293830
"rustc_traits",
38303831
"rustc_ty",
38313832
"rustc_typeck",
@@ -3860,6 +3861,7 @@ dependencies = [
38603861
"rustc_session",
38613862
"rustc_span",
38623863
"rustc_target",
3864+
"rustc_trait_selection",
38633865
"unicode-security",
38643866
]
38653867

@@ -3929,6 +3931,7 @@ dependencies = [
39293931
"rustc_macros",
39303932
"rustc_span",
39313933
"rustc_target",
3934+
"rustc_trait_selection",
39323935
"serialize",
39333936
"smallvec 1.0.0",
39343937
]
@@ -3952,6 +3955,7 @@ dependencies = [
39523955
"rustc_session",
39533956
"rustc_span",
39543957
"rustc_target",
3958+
"rustc_trait_selection",
39553959
"serialize",
39563960
"smallvec 1.0.0",
39573961
]
@@ -3992,6 +3996,7 @@ dependencies = [
39923996
"rustc_session",
39933997
"rustc_span",
39943998
"rustc_target",
3999+
"rustc_trait_selection",
39954000
]
39964001

39974002
[[package]]
@@ -4119,6 +4124,27 @@ version = "0.2.0"
41194124
source = "registry+https://github.com/rust-lang/crates.io-index"
41204125
checksum = "b725dadae9fabc488df69a287f5a99c5eaf5d10853842a8a3dfac52476f544ee"
41214126

4127+
[[package]]
4128+
name = "rustc_trait_selection"
4129+
version = "0.0.0"
4130+
dependencies = [
4131+
"fmt_macros",
4132+
"log",
4133+
"rustc",
4134+
"rustc_ast",
4135+
"rustc_attr",
4136+
"rustc_data_structures",
4137+
"rustc_errors",
4138+
"rustc_hir",
4139+
"rustc_index",
4140+
"rustc_infer",
4141+
"rustc_macros",
4142+
"rustc_session",
4143+
"rustc_span",
4144+
"rustc_target",
4145+
"smallvec 1.0.0",
4146+
]
4147+
41224148
[[package]]
41234149
name = "rustc_traits"
41244150
version = "0.0.0"
@@ -4132,6 +4158,7 @@ dependencies = [
41324158
"rustc_macros",
41334159
"rustc_span",
41344160
"rustc_target",
4161+
"rustc_trait_selection",
41354162
"smallvec 1.0.0",
41364163
]
41374164

@@ -4146,6 +4173,7 @@ dependencies = [
41464173
"rustc_infer",
41474174
"rustc_span",
41484175
"rustc_target",
4176+
"rustc_trait_selection",
41494177
]
41504178

41514179
[[package]]
@@ -4164,6 +4192,7 @@ dependencies = [
41644192
"rustc_infer",
41654193
"rustc_span",
41664194
"rustc_target",
4195+
"rustc_trait_selection",
41674196
"smallvec 1.0.0",
41684197
]
41694198

src/librustc_interface/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ rustc_errors = { path = "../librustc_errors" }
4242
rustc_plugin_impl = { path = "../librustc_plugin_impl" }
4343
rustc_privacy = { path = "../librustc_privacy" }
4444
rustc_resolve = { path = "../librustc_resolve" }
45+
rustc_trait_selection = { path = "../librustc_trait_selection" }
4546
rustc_ty = { path = "../librustc_ty" }
4647
tempfile = "3.0.5"
4748
once_cell = "1"

src/librustc_lint/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ rustc_feature = { path = "../librustc_feature" }
2424
rustc_index = { path = "../librustc_index" }
2525
rustc_session = { path = "../librustc_session" }
2626
rustc_infer = { path = "../librustc_infer" }
27+
rustc_trait_selection = { path = "../librustc_trait_selection" }

src/librustc_mir/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ rustc_lexer = { path = "../librustc_lexer" }
2828
rustc_macros = { path = "../librustc_macros" }
2929
rustc_serialize = { path = "../libserialize", package = "serialize" }
3030
rustc_target = { path = "../librustc_target" }
31+
rustc_trait_selection = { path = "../librustc_trait_selection" }
3132
rustc_ast = { path = "../librustc_ast" }
3233
rustc_span = { path = "../librustc_span" }
3334
rustc_apfloat = { path = "../librustc_apfloat" }

src/librustc_mir_build/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ rustc_serialize = { path = "../libserialize", package = "serialize" }
2525
rustc_session = { path = "../librustc_session" }
2626
rustc_span = { path = "../librustc_span" }
2727
rustc_target = { path = "../librustc_target" }
28+
rustc_trait_selection = { path = "../librustc_trait_selection" }
2829
rustc_ast = { path = "../librustc_ast" }
2930
smallvec = { version = "1.0", features = ["union", "may_dangle"] }

src/librustc_passes/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ rustc_session = { path = "../librustc_session" }
2222
rustc_target = { path = "../librustc_target" }
2323
rustc_ast = { path = "../librustc_ast" }
2424
rustc_span = { path = "../librustc_span" }
25+
rustc_trait_selection = { path = "../librustc_trait_selection" }
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[package]
2+
authors = ["The Rust Project Developers"]
3+
name = "rustc_trait_selection"
4+
version = "0.0.0"
5+
edition = "2018"
6+
7+
[lib]
8+
name = "rustc_trait_selection"
9+
path = "lib.rs"
10+
doctest = false
11+
12+
[dependencies]
13+
fmt_macros = { path = "../libfmt_macros" }
14+
log = { version = "0.4", features = ["release_max_level_info", "std"] }
15+
rustc_attr = { path = "../librustc_attr" }
16+
rustc = { path = "../librustc" }
17+
rustc_ast = { path = "../librustc_ast" }
18+
rustc_data_structures = { path = "../librustc_data_structures" }
19+
rustc_errors = { path = "../librustc_errors" }
20+
rustc_hir = { path = "../librustc_hir" }
21+
rustc_index = { path = "../librustc_index" }
22+
rustc_infer = { path = "../librustc_infer" }
23+
rustc_macros = { path = "../librustc_macros" }
24+
rustc_session = { path = "../librustc_session" }
25+
rustc_span = { path = "../librustc_span" }
26+
rustc_target = { path = "../librustc_target" }
27+
smallvec = { version = "1.0", features = ["union", "may_dangle"] }

src/librustc_traits/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ rustc_ast = { path = "../librustc_ast" }
1919
rustc_span = { path = "../librustc_span" }
2020
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
2121
rustc_infer = { path = "../librustc_infer" }
22+
rustc_trait_selection = { path = "../librustc_trait_selection" }

src/librustc_ty/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ rustc_hir = { path = "../librustc_hir" }
1616
rustc_infer = { path = "../librustc_infer" }
1717
rustc_span = { path = "../librustc_span" }
1818
rustc_target = { path = "../librustc_target" }
19+
rustc_trait_selection = { path = "../librustc_trait_selection" }

src/librustc_typeck/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ rustc_ast = { path = "../librustc_ast" }
2424
rustc_span = { path = "../librustc_span" }
2525
rustc_index = { path = "../librustc_index" }
2626
rustc_infer = { path = "../librustc_infer" }
27+
rustc_trait_selection = { path = "../librustc_trait_selection" }

0 commit comments

Comments
 (0)