Skip to content

Commit 34a8c73

Browse files
committed
Auto merge of #148163 - lnicola:sync-from-ra, r=lnicola
`rust-analyzer` subtree update Subtree update of `rust-analyzer` to rust-lang/rust-analyzer@049767e. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2 parents 23fced0 + f7c1ad6 commit 34a8c73

File tree

244 files changed

+9305
-13900
lines changed

Some content is hidden

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

244 files changed

+9305
-13900
lines changed

src/tools/rust-analyzer/Cargo.lock

Lines changed: 37 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ name = "cfg"
235235
version = "0.0.0"
236236
dependencies = [
237237
"arbitrary",
238+
"cfg",
238239
"expect-test",
239240
"intern",
240241
"oorandom",
@@ -257,28 +258,6 @@ version = "0.2.1"
257258
source = "registry+https://github.com/rust-lang/crates.io-index"
258259
checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
259260

260-
[[package]]
261-
name = "chalk-derive"
262-
version = "0.104.0"
263-
source = "registry+https://github.com/rust-lang/crates.io-index"
264-
checksum = "9ea9b1e80910f66ae87c772247591432032ef3f6a67367ff17f8343db05beafa"
265-
dependencies = [
266-
"proc-macro2",
267-
"quote",
268-
"syn",
269-
"synstructure",
270-
]
271-
272-
[[package]]
273-
name = "chalk-ir"
274-
version = "0.104.0"
275-
source = "registry+https://github.com/rust-lang/crates.io-index"
276-
checksum = "7047a516de16226cd17344d41a319d0ea1064bf9e60bd612ab341ab4a34bbfa8"
277-
dependencies = [
278-
"bitflags 2.9.4",
279-
"chalk-derive",
280-
]
281-
282261
[[package]]
283262
name = "clap"
284263
version = "4.5.48"
@@ -776,8 +755,6 @@ dependencies = [
776755
"arrayvec",
777756
"base-db",
778757
"bitflags 2.9.4",
779-
"chalk-derive",
780-
"chalk-ir",
781758
"cov-mark",
782759
"either",
783760
"ena",
@@ -819,11 +796,11 @@ dependencies = [
819796

820797
[[package]]
821798
name = "home"
822-
version = "0.5.11"
799+
version = "0.5.12"
823800
source = "registry+https://github.com/rust-lang/crates.io-index"
824-
checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf"
801+
checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d"
825802
dependencies = [
826-
"windows-sys 0.59.0",
803+
"windows-sys 0.61.0",
827804
]
828805

829806
[[package]]
@@ -929,6 +906,7 @@ dependencies = [
929906
"ide-diagnostics",
930907
"ide-ssr",
931908
"itertools",
909+
"macros",
932910
"nohash-hasher",
933911
"oorandom",
934912
"profile",
@@ -975,6 +953,7 @@ dependencies = [
975953
"hir",
976954
"ide-db",
977955
"itertools",
956+
"macros",
978957
"smallvec",
979958
"stdx",
980959
"syntax",
@@ -999,6 +978,7 @@ dependencies = [
999978
"indexmap",
1000979
"itertools",
1001980
"line-index 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
981+
"macros",
1002982
"memchr",
1003983
"nohash-hasher",
1004984
"parser",
@@ -1008,6 +988,7 @@ dependencies = [
1008988
"rustc-hash 2.1.1",
1009989
"salsa",
1010990
"salsa-macros",
991+
"smallvec",
1011992
"span",
1012993
"stdx",
1013994
"syntax",
@@ -1404,14 +1385,14 @@ dependencies = [
14041385

14051386
[[package]]
14061387
name = "mio"
1407-
version = "1.0.4"
1388+
version = "1.1.0"
14081389
source = "registry+https://github.com/rust-lang/crates.io-index"
1409-
checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c"
1390+
checksum = "69d83b0086dc8ecf3ce9ae2874b2d1290252e2a30720bea58a5c6639b0092873"
14101391
dependencies = [
14111392
"libc",
14121393
"log",
14131394
"wasi",
1414-
"windows-sys 0.59.0",
1395+
"windows-sys 0.61.0",
14151396
]
14161397

14171398
[[package]]
@@ -1467,11 +1448,11 @@ checksum = "5e0826a989adedc2a244799e823aece04662b66609d96af8dff7ac6df9a8925d"
14671448

14681449
[[package]]
14691450
name = "nu-ansi-term"
1470-
version = "0.50.1"
1451+
version = "0.50.3"
14711452
source = "registry+https://github.com/rust-lang/crates.io-index"
1472-
checksum = "d4a28e057d01f97e61255210fcff094d74ed0466038633e95017f5beb68e4399"
1453+
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
14731454
dependencies = [
1474-
"windows-sys 0.52.0",
1455+
"windows-sys 0.60.2",
14751456
]
14761457

14771458
[[package]]
@@ -1578,6 +1559,7 @@ dependencies = [
15781559
"rustc-literal-escaper 0.0.4",
15791560
"stdx",
15801561
"tracing",
1562+
"winnow",
15811563
]
15821564

15831565
[[package]]
@@ -1842,9 +1824,9 @@ dependencies = [
18421824

18431825
[[package]]
18441826
name = "ra-ap-rustc_abi"
1845-
version = "0.133.0"
1827+
version = "0.137.0"
18461828
source = "registry+https://github.com/rust-lang/crates.io-index"
1847-
checksum = "c063a7fef3c49d03837ee9a5d988aad83630c3460b03b32355c279d3fafa7d07"
1829+
checksum = "a4ce5c9ea794353e02beae390c4674f74ffb23a2ad9de763469fdcef5c1026ef"
18481830
dependencies = [
18491831
"bitflags 2.9.4",
18501832
"ra-ap-rustc_hashes",
@@ -1854,34 +1836,34 @@ dependencies = [
18541836

18551837
[[package]]
18561838
name = "ra-ap-rustc_ast_ir"
1857-
version = "0.133.0"
1839+
version = "0.137.0"
18581840
source = "registry+https://github.com/rust-lang/crates.io-index"
1859-
checksum = "a210dbd77e794b33ff17d2d15750dee44eeabd1330685d69a6bad272d515892a"
1841+
checksum = "1696b77af9bbfe1fcc7a09c907561061c6ef4c8bd6d5f1675b927bc62d349103"
18601842

18611843
[[package]]
18621844
name = "ra-ap-rustc_hashes"
1863-
version = "0.133.0"
1845+
version = "0.137.0"
18641846
source = "registry+https://github.com/rust-lang/crates.io-index"
1865-
checksum = "dea031ea45bb92cd346ed222b35c812e355f304183096ee91bb437b3813c6348"
1847+
checksum = "c055d8b0d8a592d8cf9547495189f52c1ee5c691d28df1628253a816214e8521"
18661848
dependencies = [
18671849
"rustc-stable-hash",
18681850
]
18691851

18701852
[[package]]
18711853
name = "ra-ap-rustc_index"
1872-
version = "0.133.0"
1854+
version = "0.137.0"
18731855
source = "registry+https://github.com/rust-lang/crates.io-index"
1874-
checksum = "db0114f842b20cba9beb2d9002ca31ae706b47f28ba2d6a49cbf9fd65fa72b9d"
1856+
checksum = "a08a03e3d4a452144b68f48130eda3a2894d4d79e99ddb44bdb4e0ab8c384e10"
18751857
dependencies = [
18761858
"ra-ap-rustc_index_macros",
18771859
"smallvec",
18781860
]
18791861

18801862
[[package]]
18811863
name = "ra-ap-rustc_index_macros"
1882-
version = "0.133.0"
1864+
version = "0.137.0"
18831865
source = "registry+https://github.com/rust-lang/crates.io-index"
1884-
checksum = "bc738a5bb06fb3893725fbeb3640ff1822bb2aae3f416c4a49f0a706ba89d1cc"
1866+
checksum = "a1e0446b4d65a8ce19d8fd12826c4bf2365ffa4b8fe0ee94daf5968fe36e920c"
18851867
dependencies = [
18861868
"proc-macro2",
18871869
"quote",
@@ -1890,9 +1872,9 @@ dependencies = [
18901872

18911873
[[package]]
18921874
name = "ra-ap-rustc_lexer"
1893-
version = "0.133.0"
1875+
version = "0.137.0"
18941876
source = "registry+https://github.com/rust-lang/crates.io-index"
1895-
checksum = "31c35b3d812cfc101d3f534640c13f24c0ec50ee2249685e4c20b2868609c9ee"
1877+
checksum = "ac80365383a3c749f38af567fdcfaeff3fa6ea5df3846852abbce73e943921b9"
18961878
dependencies = [
18971879
"memchr",
18981880
"unicode-properties",
@@ -1901,9 +1883,9 @@ dependencies = [
19011883

19021884
[[package]]
19031885
name = "ra-ap-rustc_next_trait_solver"
1904-
version = "0.133.0"
1886+
version = "0.137.0"
19051887
source = "registry+https://github.com/rust-lang/crates.io-index"
1906-
checksum = "e7b0fa6fb8e0717ebd0836f8de4a6efc954fca1a8652980fd2584dbe448c7d95"
1888+
checksum = "a39b419d2d6f7fdec7e0981b7fb7d5beb5dda7140064f1199704ec9dadbb6f73"
19071889
dependencies = [
19081890
"derive-where",
19091891
"ra-ap-rustc_index",
@@ -1914,19 +1896,19 @@ dependencies = [
19141896

19151897
[[package]]
19161898
name = "ra-ap-rustc_parse_format"
1917-
version = "0.133.0"
1899+
version = "0.137.0"
19181900
source = "registry+https://github.com/rust-lang/crates.io-index"
1919-
checksum = "33d01bad23470cc749ef607476890aabcc8993ca3ef87d4241d0f6a08c6f9402"
1901+
checksum = "b743b0c8f795842e41b1720bbc5af6e896129fb9acf04e9785774bfb0dc5947c"
19201902
dependencies = [
19211903
"ra-ap-rustc_lexer",
19221904
"rustc-literal-escaper 0.0.5",
19231905
]
19241906

19251907
[[package]]
19261908
name = "ra-ap-rustc_pattern_analysis"
1927-
version = "0.133.0"
1909+
version = "0.137.0"
19281910
source = "registry+https://github.com/rust-lang/crates.io-index"
1929-
checksum = "8a181cf7943dc16e888046584d6172be95818811b25d695dbacbb4dd71973cc3"
1911+
checksum = "cf944dce80137195528f89a576f70153c2060a6f8ca49c3fa9f55f9da14ab937"
19301912
dependencies = [
19311913
"ra-ap-rustc_index",
19321914
"rustc-hash 2.1.1",
@@ -1937,9 +1919,9 @@ dependencies = [
19371919

19381920
[[package]]
19391921
name = "ra-ap-rustc_type_ir"
1940-
version = "0.133.0"
1922+
version = "0.137.0"
19411923
source = "registry+https://github.com/rust-lang/crates.io-index"
1942-
checksum = "87c99f33be18d9e50cefef5442822da1f0b416e9a17a483879a9704e08a6a6e6"
1924+
checksum = "1bfe2722b20bc889a9d7711bd3a1f4f7b082940491241615aa643c17e0deffec"
19431925
dependencies = [
19441926
"arrayvec",
19451927
"bitflags 2.9.4",
@@ -1957,9 +1939,9 @@ dependencies = [
19571939

19581940
[[package]]
19591941
name = "ra-ap-rustc_type_ir_macros"
1960-
version = "0.133.0"
1942+
version = "0.137.0"
19611943
source = "registry+https://github.com/rust-lang/crates.io-index"
1962-
checksum = "77b162d65e058abfc058e6b67ae68156cc282fbd78da148c1a7ec77b4230661e"
1944+
checksum = "6fad1527df26aaa77367393fae86f42818b33e02b3737a19f3846d1c7671e7f9"
19631945
dependencies = [
19641946
"proc-macro2",
19651947
"quote",
@@ -2991,24 +2973,6 @@ dependencies = [
29912973
"windows-link 0.1.3",
29922974
]
29932975

2994-
[[package]]
2995-
name = "windows-sys"
2996-
version = "0.52.0"
2997-
source = "registry+https://github.com/rust-lang/crates.io-index"
2998-
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
2999-
dependencies = [
3000-
"windows-targets 0.52.6",
3001-
]
3002-
3003-
[[package]]
3004-
name = "windows-sys"
3005-
version = "0.59.0"
3006-
source = "registry+https://github.com/rust-lang/crates.io-index"
3007-
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
3008-
dependencies = [
3009-
"windows-targets 0.52.6",
3010-
]
3011-
30122976
[[package]]
30132977
name = "windows-sys"
30142978
version = "0.60.2"

src/tools/rust-analyzer/Cargo.toml

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

40-
# chalk-ir = { path = "../chalk/chalk-ir" }
41-
# chalk-derive = { path = "../chalk/chalk-derive" }
4240
# line-index = { path = "lib/line-index" }
4341
# la-arena = { path = "lib/la-arena" }
4442
# lsp-server = { path = "lib/lsp-server" }
@@ -88,14 +86,14 @@ vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
8886
vfs = { path = "./crates/vfs", version = "0.0.0" }
8987
edition = { path = "./crates/edition", version = "0.0.0" }
9088

91-
ra-ap-rustc_lexer = { version = "0.133", default-features = false }
92-
ra-ap-rustc_parse_format = { version = "0.133", default-features = false }
93-
ra-ap-rustc_index = { version = "0.133", default-features = false }
94-
ra-ap-rustc_abi = { version = "0.133", default-features = false }
95-
ra-ap-rustc_pattern_analysis = { version = "0.133", default-features = false }
96-
ra-ap-rustc_ast_ir = { version = "0.133", default-features = false }
97-
ra-ap-rustc_type_ir = { version = "0.133", default-features = false }
98-
ra-ap-rustc_next_trait_solver = { version = "0.133", default-features = false }
89+
ra-ap-rustc_lexer = { version = "0.137", default-features = false }
90+
ra-ap-rustc_parse_format = { version = "0.137", default-features = false }
91+
ra-ap-rustc_index = { version = "0.137", default-features = false }
92+
ra-ap-rustc_abi = { version = "0.137", default-features = false }
93+
ra-ap-rustc_pattern_analysis = { version = "0.137", default-features = false }
94+
ra-ap-rustc_ast_ir = { version = "0.137", default-features = false }
95+
ra-ap-rustc_type_ir = { version = "0.137", default-features = false }
96+
ra-ap-rustc_next_trait_solver = { version = "0.137", default-features = false }
9997

10098
# local crates that aren't published to crates.io. These should not have versions.
10199

@@ -110,8 +108,6 @@ arrayvec = "0.7.6"
110108
bitflags = "2.9.1"
111109
cargo_metadata = "0.21.0"
112110
camino = "1.1.10"
113-
chalk-ir = "0.104.0"
114-
chalk-derive = "0.104.0"
115111
crossbeam-channel = "0.5.15"
116112
dissimilar = "1.0.10"
117113
dot = "0.1.4"

src/tools/rust-analyzer/crates/cfg/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ arbitrary = { version = "1.4.1", features = ["derive"] }
2929
syntax-bridge.workspace = true
3030
syntax.workspace = true
3131

32+
# tt is needed for testing
33+
cfg = { path = ".", default-features = false, features = ["tt"] }
34+
3235
[lints]
3336
workspace = true

src/tools/rust-analyzer/crates/cfg/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ impl CfgOptions {
115115
pub fn shrink_to_fit(&mut self) {
116116
self.enabled.shrink_to_fit();
117117
}
118+
119+
pub fn append(&mut self, other: CfgOptions) {
120+
// Do not call `insert_any_atom()`, as it'll check for `true` and `false`, but this is not
121+
// needed since we already checked for that when constructing `other`. Furthermore, this
122+
// will always err, as `other` inevitably contains `true` (just as we do).
123+
self.enabled.extend(other.enabled);
124+
}
118125
}
119126

120127
impl Extend<CfgAtom> for CfgOptions {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ oorandom = "11.1.5"
2424
tracing.workspace = true
2525
rustc-hash.workspace = true
2626
scoped-tls = "1.0.1"
27-
chalk-ir.workspace = true
28-
chalk-derive.workspace = true
2927
la-arena.workspace = true
3028
triomphe.workspace = true
3129
typed-arena = "2.0.2"

0 commit comments

Comments
 (0)