Skip to content

Commit b1d9569

Browse files
authored
Merge pull request rust-lang#20703 from ShoyuVanilla/remove-chalk-solve
minor: Get rid of unused deps `chalk-solve` and `chalk-recursive`
2 parents fefecbc + bf5fe6e commit b1d9569

File tree

4 files changed

+16
-88
lines changed

4 files changed

+16
-88
lines changed

src/tools/rust-analyzer/Cargo.lock

Lines changed: 16 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -279,35 +279,6 @@ dependencies = [
279279
"chalk-derive",
280280
]
281281

282-
[[package]]
283-
name = "chalk-recursive"
284-
version = "0.104.0"
285-
source = "registry+https://github.com/rust-lang/crates.io-index"
286-
checksum = "882959c242558cc686de7ff0aa59860295598d119e84a4b100215f44c3d606c4"
287-
dependencies = [
288-
"chalk-derive",
289-
"chalk-ir",
290-
"chalk-solve",
291-
"rustc-hash 1.1.0",
292-
"tracing",
293-
]
294-
295-
[[package]]
296-
name = "chalk-solve"
297-
version = "0.104.0"
298-
source = "registry+https://github.com/rust-lang/crates.io-index"
299-
checksum = "72860086494ccfa05bbd3779a74babb8ace27da9a0cbabffa1315223c7290927"
300-
dependencies = [
301-
"chalk-derive",
302-
"chalk-ir",
303-
"ena",
304-
"indexmap",
305-
"itertools 0.12.1",
306-
"petgraph",
307-
"rustc-hash 1.1.0",
308-
"tracing",
309-
]
310-
311282
[[package]]
312283
name = "clap"
313284
version = "4.5.42"
@@ -574,12 +545,6 @@ dependencies = [
574545
"windows-sys 0.59.0",
575546
]
576547

577-
[[package]]
578-
name = "fixedbitset"
579-
version = "0.4.2"
580-
source = "registry+https://github.com/rust-lang/crates.io-index"
581-
checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
582-
583548
[[package]]
584549
name = "flate2"
585550
version = "1.1.2"
@@ -706,7 +671,7 @@ dependencies = [
706671
"hir-ty",
707672
"indexmap",
708673
"intern",
709-
"itertools 0.14.0",
674+
"itertools",
710675
"ra-ap-rustc_type_ir",
711676
"rustc-hash 2.1.1",
712677
"smallvec",
@@ -739,7 +704,7 @@ dependencies = [
739704
"hir-expand",
740705
"indexmap",
741706
"intern",
742-
"itertools 0.14.0",
707+
"itertools",
743708
"la-arena 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
744709
"mbe",
745710
"query-group-macro",
@@ -773,7 +738,7 @@ dependencies = [
773738
"either",
774739
"expect-test",
775740
"intern",
776-
"itertools 0.14.0",
741+
"itertools",
777742
"mbe",
778743
"parser",
779744
"query-group-macro",
@@ -799,8 +764,6 @@ dependencies = [
799764
"bitflags 2.9.1",
800765
"chalk-derive",
801766
"chalk-ir",
802-
"chalk-recursive",
803-
"chalk-solve",
804767
"cov-mark",
805768
"either",
806769
"ena",
@@ -809,7 +772,7 @@ dependencies = [
809772
"hir-expand",
810773
"indexmap",
811774
"intern",
812-
"itertools 0.14.0",
775+
"itertools",
813776
"la-arena 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
814777
"oorandom",
815778
"project-model",
@@ -949,7 +912,7 @@ dependencies = [
949912
"ide-db",
950913
"ide-diagnostics",
951914
"ide-ssr",
952-
"itertools 0.14.0",
915+
"itertools",
953916
"nohash-hasher",
954917
"oorandom",
955918
"profile",
@@ -977,7 +940,7 @@ dependencies = [
977940
"expect-test",
978941
"hir",
979942
"ide-db",
980-
"itertools 0.14.0",
943+
"itertools",
981944
"smallvec",
982945
"stdx",
983946
"syntax",
@@ -995,7 +958,7 @@ dependencies = [
995958
"expect-test",
996959
"hir",
997960
"ide-db",
998-
"itertools 0.14.0",
961+
"itertools",
999962
"smallvec",
1000963
"stdx",
1001964
"syntax",
@@ -1018,7 +981,7 @@ dependencies = [
1018981
"fst",
1019982
"hir",
1020983
"indexmap",
1021-
"itertools 0.14.0",
984+
"itertools",
1022985
"line-index 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
1023986
"memchr",
1024987
"nohash-hasher",
@@ -1049,7 +1012,7 @@ dependencies = [
10491012
"expect-test",
10501013
"hir",
10511014
"ide-db",
1052-
"itertools 0.14.0",
1015+
"itertools",
10531016
"paths",
10541017
"serde_json",
10551018
"stdx",
@@ -1067,7 +1030,7 @@ dependencies = [
10671030
"expect-test",
10681031
"hir",
10691032
"ide-db",
1070-
"itertools 0.14.0",
1033+
"itertools",
10711034
"parser",
10721035
"syntax",
10731036
"test-fixture",
@@ -1146,15 +1109,6 @@ dependencies = [
11461109
"memoffset",
11471110
]
11481111

1149-
[[package]]
1150-
name = "itertools"
1151-
version = "0.12.1"
1152-
source = "registry+https://github.com/rust-lang/crates.io-index"
1153-
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
1154-
dependencies = [
1155-
"either",
1156-
]
1157-
11581112
[[package]]
11591113
name = "itertools"
11601114
version = "0.14.0"
@@ -1283,7 +1237,7 @@ dependencies = [
12831237
"hir-expand",
12841238
"ide-db",
12851239
"intern",
1286-
"itertools 0.14.0",
1240+
"itertools",
12871241
"proc-macro-api",
12881242
"project-model",
12891243
"span",
@@ -1640,16 +1594,6 @@ dependencies = [
16401594
"libc",
16411595
]
16421596

1643-
[[package]]
1644-
name = "petgraph"
1645-
version = "0.6.5"
1646-
source = "registry+https://github.com/rust-lang/crates.io-index"
1647-
checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db"
1648-
dependencies = [
1649-
"fixedbitset",
1650-
"indexmap",
1651-
]
1652-
16531597
[[package]]
16541598
name = "pin-project-lite"
16551599
version = "0.2.16"
@@ -1784,7 +1728,7 @@ dependencies = [
17841728
"cfg",
17851729
"expect-test",
17861730
"intern",
1787-
"itertools 0.14.0",
1731+
"itertools",
17881732
"la-arena 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
17891733
"paths",
17901734
"rustc-hash 2.1.1",
@@ -2062,7 +2006,7 @@ dependencies = [
20622006
"ide-ssr",
20632007
"indexmap",
20642008
"intern",
2065-
"itertools 0.14.0",
2009+
"itertools",
20662010
"load-cargo",
20672011
"lsp-server 0.7.9 (registry+https://github.com/rust-lang/crates.io-index)",
20682012
"lsp-types",
@@ -2400,7 +2344,7 @@ dependencies = [
24002344
"backtrace",
24012345
"crossbeam-channel",
24022346
"crossbeam-utils",
2403-
"itertools 0.14.0",
2347+
"itertools",
24042348
"jod-thread",
24052349
"libc",
24062350
"miow",
@@ -2436,7 +2380,7 @@ version = "0.0.0"
24362380
dependencies = [
24372381
"either",
24382382
"expect-test",
2439-
"itertools 0.14.0",
2383+
"itertools",
24402384
"parser",
24412385
"rayon",
24422386
"rowan",
@@ -3285,7 +3229,7 @@ dependencies = [
32853229
"edition",
32863230
"either",
32873231
"flate2",
3288-
"itertools 0.14.0",
3232+
"itertools",
32893233
"proc-macro2",
32903234
"quote",
32913235
"stdx",

src/tools/rust-analyzer/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ debug = 2
3737
[patch.'crates-io']
3838
# rowan = { path = "../rowan" }
3939

40-
# chalk-solve = { path = "../chalk/chalk-solve" }
4140
# chalk-ir = { path = "../chalk/chalk-ir" }
42-
# chalk-recursive = { path = "../chalk/chalk-recursive" }
4341
# chalk-derive = { path = "../chalk/chalk-derive" }
4442
# line-index = { path = "lib/line-index" }
4543
# la-arena = { path = "lib/la-arena" }
@@ -111,9 +109,7 @@ arrayvec = "0.7.6"
111109
bitflags = "2.9.1"
112110
cargo_metadata = "0.21.0"
113111
camino = "1.1.10"
114-
chalk-solve = { version = "0.104.0", default-features = false }
115112
chalk-ir = "0.104.0"
116-
chalk-recursive = { version = "0.104.0", default-features = false }
117113
chalk-derive = "0.104.0"
118114
crossbeam-channel = "0.5.15"
119115
dissimilar = "1.0.10"

src/tools/rust-analyzer/crates/hir-ty/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ oorandom = "11.1.5"
2424
tracing.workspace = true
2525
rustc-hash.workspace = true
2626
scoped-tls = "1.0.1"
27-
chalk-solve.workspace = true
2827
chalk-ir.workspace = true
29-
chalk-recursive.workspace = true
3028
chalk-derive.workspace = true
3129
la-arena.workspace = true
3230
triomphe.workspace = true

src/tools/rust-analyzer/crates/hir-ty/src/traits.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use core::fmt;
44
use std::hash::Hash;
55

66
use chalk_ir::{DebruijnIndex, GoalData, fold::TypeFoldable};
7-
use chalk_solve::rust_ir;
87

98
use base_db::Crate;
109
use hir_def::{BlockId, TraitId, lang_item::LangItem};
@@ -405,15 +404,6 @@ impl FnTrait {
405404
}
406405
}
407406

408-
pub const fn to_chalk_ir(self) -> rust_ir::ClosureKind {
409-
// Chalk doesn't support async fn traits.
410-
match self {
411-
FnTrait::AsyncFnOnce | FnTrait::FnOnce => rust_ir::ClosureKind::FnOnce,
412-
FnTrait::AsyncFnMut | FnTrait::FnMut => rust_ir::ClosureKind::FnMut,
413-
FnTrait::AsyncFn | FnTrait::Fn => rust_ir::ClosureKind::Fn,
414-
}
415-
}
416-
417407
pub fn method_name(self) -> Name {
418408
match self {
419409
FnTrait::FnOnce => Name::new_symbol_root(sym::call_once),

0 commit comments

Comments
 (0)