Skip to content

Subtree update of rust-analyzer #144114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 77 commits into from
Jul 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
c416249
feat: ide-assist, generate single field struct From
A4-Tacks May 12, 2025
6240a2b
generate new for tuple field
Hmikihiro Jun 26, 2025
6759aac
use name_generator
Hmikihiro Jun 27, 2025
08a36de
use placeholder_snippet
Hmikihiro Jun 27, 2025
383dcd5
feat: support folding multiline arg list & fn body in one folding range
Young-Flash Jun 21, 2025
e0e21dd
internal: add `FoldKind::Function`
Young-Flash Jun 30, 2025
594252f
test: add test case for func with multiline param list
Young-Flash Jun 30, 2025
f74e9b0
Always bump in the parser in `err_and_bump()`
ChayimFriedman2 Jul 6, 2025
a9b8eec
Include enum variants in world symbols
ChayimFriedman2 Jul 6, 2025
7fbbdb6
Merge pull request #20185 from ChayimFriedman2/variant-symbols
davidbarsky Jul 7, 2025
aa331b1
Fix a case where the link type was `None`
ChayimFriedman2 Jul 7, 2025
0209f9e
Merge pull request #20180 from ChayimFriedman2/parser-stuck
Veykril Jul 7, 2025
eed37be
Merge pull request #20192 from ChayimFriedman2/link-type-panic
Veykril Jul 8, 2025
5834bda
Migrate `pull_assignment_up` assist to `SyntaxEditor`
Hmikihiro Jul 8, 2025
910c78b
Revert "Re-enable fixpoint iteration for variance computation"
ChayimFriedman2 Jul 8, 2025
ea65d0a
Merge pull request #20198 from Hmikihiro/migrate_pull_asignment_up
ShoyuVanilla Jul 9, 2025
f89d98d
Merge pull request #20200 from rust-lang/revert-20157-push-nxrvpywtvoys
ShoyuVanilla Jul 9, 2025
7b39139
Don't hash the `SyntaxKind` in the ast id
ChayimFriedman2 Jul 9, 2025
ebdd859
Differentiate between `asm!()`, `global_asm!()` and `naked_asm!()`, a…
ChayimFriedman2 Jul 9, 2025
f75d000
Merge pull request #20109 from Hmikihiro/generate_new_tuple_field
ShoyuVanilla Jul 9, 2025
90653b0
Make `global_asm!()` work
ChayimFriedman2 Jul 9, 2025
f3fc50b
migrate `convert_named_struct_to_tuple_struct` assist to use 'SyntaxE…
Hmikihiro Jul 9, 2025
e4e9404
Don't show `dyn` hint in a HRTB bound
ChayimFriedman2 Jul 9, 2025
46e9519
Disable the `diagnostics_dont_block_typing` test on CI
ChayimFriedman2 Jul 9, 2025
5c0c794
Put `dyn` inlay hints in their correct place in presence of parentheses
ChayimFriedman2 Jul 9, 2025
c246e06
Update MSRV to 1.88.0
ChayimFriedman2 Jul 9, 2025
ee407b5
Merge pull request #20211 from Hmikihiro/migrate-convert_named_struct
lnicola Jul 9, 2025
56f1403
Merge pull request #20214 from rust-lang/update-msrv
ChayimFriedman2 Jul 9, 2025
36f6f1e
Make `AsmExpr` have `AstId`
ChayimFriedman2 Jul 9, 2025
c2fad05
Put the expression stuff in the expression store behind an `Option<Box>`
ChayimFriedman2 Jul 10, 2025
b273929
Migrate `convert_match_to_let_else` assist to use `SyntaxEditor`
Hmikihiro Jul 10, 2025
80f5022
Merge pull request #20218 from Hmikihiro/migrate_convert_match_to_let…
ShoyuVanilla Jul 10, 2025
6ae9db7
Merge pull request #20212 from ChayimFriedman2/dyn-hint
ShoyuVanilla Jul 10, 2025
9068133
Revert "remove `if-let` chains"
lnicola Jul 10, 2025
2452863
Merge pull request #20221 from lnicola/assist-let-chain
lnicola Jul 10, 2025
7625ed9
Merge pull request #20210 from ChayimFriedman2/naked-asm-safe
ShoyuVanilla Jul 10, 2025
b692051
Migrate `generate_impl` assist to use `SyntaxEditor`
Hmikihiro Jul 10, 2025
649ec27
Merge pull request #20223 from Hmikihiro/migrate_generate_impl
ShoyuVanilla Jul 10, 2025
c1cf45a
Merge pull request #20054 from Young-Flash/folding_all
ShoyuVanilla Jul 10, 2025
e6a8a13
Fix display of `use<>` syntax
ChayimFriedman2 Jul 10, 2025
a28dffa
Merge pull request #20228 from ChayimFriedman2/fix-use-display
ChayimFriedman2 Jul 10, 2025
506ea9a
update cargo_metadata to 0.21.0
asahi-myzk Jul 11, 2025
c4f97e8
Merge pull request #20230 from asahi-myzk/update-cargo-metadata
ShoyuVanilla Jul 11, 2025
1b9d64d
Migrate `remove_dbg` assist to use `SyntaxEditor`
Hmikihiro Jul 10, 2025
7e743ab
Merge pull request #20224 from Hmikihiro/migrate_remove_dbg
ShoyuVanilla Jul 11, 2025
5a90308
fix: Normalize projection types before calculating memory maps
ShoyuVanilla Jul 11, 2025
928bfbf
Merge pull request #20219 from ChayimFriedman2/expr-store-mem
ChayimFriedman2 Jul 11, 2025
f15dfa8
Add a memory map bound check assertion on rendering const slice
ShoyuVanilla Jul 11, 2025
c4e8c34
Merge pull request #20232 from ShoyuVanilla/issue-20225
ShoyuVanilla Jul 11, 2025
01f4346
Fix assoc type where clause position
A4-Tacks Jul 12, 2025
da6c099
remove `remove_default`
Hmikihiro Jul 12, 2025
7f2064e
remove now useless `[allow(unused_lifetimes)]`
gvozdvmozgu Jul 13, 2025
09d820a
Merge pull request #20235 from A4-Tacks/assoctype-where-comp
ShoyuVanilla Jul 13, 2025
a96ad09
Merge pull request #20236 from gvozdvmozgu/patch-1
ChayimFriedman2 Jul 13, 2025
356a54d
Merge pull request #20234 from Hmikihiro/migrate_ted_remove_default
ShoyuVanilla Jul 14, 2025
1d3ea1f
Infer lifetimes for GATs in expression/pattern position
ChayimFriedman2 Jul 14, 2025
4faef6f
Merge pull request #20238 from rust-lang/gat-infer-lifetimes
ShoyuVanilla Jul 15, 2025
0a03742
chore: Cleanup cargo config queries
ShoyuVanilla Jul 5, 2025
a65e2f0
Further decrease number of `cargo metadata` invokes
ShoyuVanilla Jul 6, 2025
ec3443f
Preparing for merge from rust-lang/rust
lnicola Jul 15, 2025
48f9a7c
Merge from rust-lang/rust
lnicola Jul 15, 2025
28f822f
Format and bump rustc crates
lnicola Jul 15, 2025
0393e06
Merge pull request #20243 from lnicola/sync-from-rust
lnicola Jul 15, 2025
42758bb
Merge pull request #20178 from ShoyuVanilla/cargo-config-cleanup
ShoyuVanilla Jul 15, 2025
e0bb729
Add AsRef and Borrow for generate_mut_trait_impl
A4-Tacks Jun 4, 2025
9ba661e
Remove redundant type parameters
A4-Tacks Jul 16, 2025
9909a37
Use hir::Trait in parameter
A4-Tacks Jul 16, 2025
f2b8fda
Add AsMut to minicore prelude::v1
A4-Tacks Jul 16, 2025
250aee3
Merge pull request #20246 from A4-Tacks/prelude-asmut-minicore
ShoyuVanilla Jul 16, 2025
83de70f
Merge pull request #19917 from A4-Tacks/ext-generate-mut
ShoyuVanilla Jul 16, 2025
61fafa9
Add tailexpr & -> &mut for generate_mut_trait_impl
A4-Tacks Jul 16, 2025
0901d51
Merge pull request #20247 from A4-Tacks/gen-mut-impl-mut
ShoyuVanilla Jul 16, 2025
b8f4e3f
examples: add `minimal_lsp.rs` and FIFO test script.
shashforge Jul 12, 2025
60aac8f
Merge pull request #20233 from shashforge/lsp-minimal-example-clean
ShoyuVanilla Jul 17, 2025
9792527
Merge pull request #19783 from A4-Tacks/generate-single-field-from
ShoyuVanilla Jul 18, 2025
482b349
Update lockfile
lnicola Jul 18, 2025
1308726
Merge pull request #20251 from lnicola/update-lockfile
lnicola Jul 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 55 additions & 27 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,22 @@ dependencies = [
"url",
]

[[package]]
name = "cargo-util-schemas"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7dc1a6f7b5651af85774ae5a34b4e8be397d9cf4bc063b7e6dbd99a841837830"
dependencies = [
"semver",
"serde",
"serde-untagged",
"serde-value",
"thiserror 2.0.12",
"toml",
"unicode-xid",
"url",
]

[[package]]
name = "cargo_metadata"
version = "0.20.0"
Expand All @@ -161,7 +177,22 @@ checksum = "4f7835cfc6135093070e95eb2b53e5d9b5c403dc3a6be6040ee026270aa82502"
dependencies = [
"camino",
"cargo-platform",
"cargo-util-schemas",
"cargo-util-schemas 0.2.0",
"semver",
"serde",
"serde_json",
"thiserror 2.0.12",
]

[[package]]
name = "cargo_metadata"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5cfca2aaa699835ba88faf58a06342a314a950d2b9686165e038286c30316868"
dependencies = [
"camino",
"cargo-platform",
"cargo-util-schemas 0.8.2",
"semver",
"serde",
"serde_json",
Expand Down Expand Up @@ -1190,13 +1221,16 @@ checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
name = "lsp-server"
version = "0.7.8"
dependencies = [
"anyhow",
"crossbeam-channel",
"ctrlc",
"log",
"lsp-types",
"rustc-hash 2.1.1",
"serde",
"serde_derive",
"serde_json",
"toolchain",
]

[[package]]
Expand Down Expand Up @@ -1471,7 +1505,7 @@ dependencies = [
"edition",
"expect-test",
"ra-ap-rustc_lexer",
"rustc-literal-escaper 0.0.4",
"rustc-literal-escaper",
"stdx",
"tracing",
]
Expand Down Expand Up @@ -1599,7 +1633,7 @@ dependencies = [
name = "proc-macro-test"
version = "0.0.0"
dependencies = [
"cargo_metadata",
"cargo_metadata 0.20.0",
]

[[package]]
Expand Down Expand Up @@ -1640,7 +1674,7 @@ version = "0.0.0"
dependencies = [
"anyhow",
"base-db",
"cargo_metadata",
"cargo_metadata 0.21.0",
"cfg",
"expect-test",
"intern",
Expand Down Expand Up @@ -1722,9 +1756,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_abi"
version = "0.116.0"
version = "0.121.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a967e3a9cd3e38b543f503978e0eccee461e3aea3f7b10e944959bff41dbe612"
checksum = "3ee51482d1c9d3e538acda8cce723db8eea1a81540544bf362bf4c3d841b2329"
dependencies = [
"bitflags 2.9.1",
"ra-ap-rustc_hashes",
Expand All @@ -1734,28 +1768,28 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_hashes"
version = "0.116.0"
version = "0.121.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ea4c755ecbbffa5743c251344f484ebe571ec7bc5b36d80b2a8ae775d1a7a40"
checksum = "19c8f1e0c28e24e1b4c55dc08058c6c9829df2204497d4034259f491d348c204"
dependencies = [
"rustc-stable-hash",
]

[[package]]
name = "ra-ap-rustc_index"
version = "0.116.0"
version = "0.121.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aca7ad7cf911538c619caa2162339fe98637e9e46f11bb0484ef96735df4d64a"
checksum = "5f33f429cec6b92fa2c7243883279fb29dd233fdc3e94099aff32aa91aa87f50"
dependencies = [
"ra-ap-rustc_index_macros",
"smallvec",
]

[[package]]
name = "ra-ap-rustc_index_macros"
version = "0.116.0"
version = "0.121.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8767ba551c9355bc3031be072cc4bb0381106e5e7cd275e72b7a8c76051c4070"
checksum = "b9b55910dbe1fe7ef34bdc1d1bcb41e99b377eb680ea58a1218d95d6b4152257"
dependencies = [
"proc-macro2",
"quote",
Expand All @@ -1764,9 +1798,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_lexer"
version = "0.116.0"
version = "0.121.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6101374afb267e6c27e4e2eb0b1352e9f3504c1a8f716f619cd39244e2ed92ab"
checksum = "22944e31fb91e9b3e75bcbc91e37d958b8c0825a6160927f2856831d2ce83b36"
dependencies = [
"memchr",
"unicode-properties",
Expand All @@ -1775,19 +1809,19 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_parse_format"
version = "0.116.0"
version = "0.121.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ecd88a19f00da4f43e6727d5013444cbc399804b5046dfa2bbcd28ebed3970ce"
checksum = "81057891bc2063ad9e353f29462fbc47a0f5072560af34428ae9313aaa5e9d97"
dependencies = [
"ra-ap-rustc_lexer",
"rustc-literal-escaper 0.0.2",
"rustc-literal-escaper",
]

[[package]]
name = "ra-ap-rustc_pattern_analysis"
version = "0.116.0"
version = "0.121.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb332dd32d7850a799862533b1c021e6062558861a4ad57817bf522499fbb892"
checksum = "fe21a3542980d56d2435e96c2720773cac1c63fd4db666417e414729da192eb3"
dependencies = [
"ra-ap-rustc_index",
"rustc-hash 2.1.1",
Expand Down Expand Up @@ -1855,7 +1889,7 @@ version = "0.0.0"
dependencies = [
"anyhow",
"base64",
"cargo_metadata",
"cargo_metadata 0.21.0",
"cfg",
"crossbeam-channel",
"dirs",
Expand Down Expand Up @@ -1932,12 +1966,6 @@ version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"

[[package]]
name = "rustc-literal-escaper"
version = "0.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0041b6238913c41fe704213a4a9329e2f685a156d1781998128b4149c230ad04"

[[package]]
name = "rustc-literal-escaper"
version = "0.0.4"
Expand Down Expand Up @@ -2231,7 +2259,7 @@ dependencies = [
"rayon",
"rowan",
"rustc-hash 2.1.1",
"rustc-literal-escaper 0.0.4",
"rustc-literal-escaper",
"rustc_apfloat",
"smol_str",
"stdx",
Expand Down
20 changes: 12 additions & 8 deletions src/tools/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exclude = ["crates/proc-macro-srv/proc-macro-test/imp"]
resolver = "2"

[workspace.package]
rust-version = "1.86"
rust-version = "1.88"
edition = "2024"
license = "MIT OR Apache-2.0"
authors = ["rust-analyzer team"]
Expand Down Expand Up @@ -89,11 +89,11 @@ vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
vfs = { path = "./crates/vfs", version = "0.0.0" }
edition = { path = "./crates/edition", version = "0.0.0" }

ra-ap-rustc_lexer = { version = "0.116", default-features = false }
ra-ap-rustc_parse_format = { version = "0.116", default-features = false }
ra-ap-rustc_index = { version = "0.116", default-features = false }
ra-ap-rustc_abi = { version = "0.116", default-features = false }
ra-ap-rustc_pattern_analysis = { version = "0.116", default-features = false }
ra-ap-rustc_lexer = { version = "0.121", default-features = false }
ra-ap-rustc_parse_format = { version = "0.121", default-features = false }
ra-ap-rustc_index = { version = "0.121", default-features = false }
ra-ap-rustc_abi = { version = "0.121", default-features = false }
ra-ap-rustc_pattern_analysis = { version = "0.121", default-features = false }

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

Expand All @@ -106,7 +106,7 @@ lsp-server = { version = "0.7.8" }
anyhow = "1.0.98"
arrayvec = "0.7.6"
bitflags = "2.9.1"
cargo_metadata = "0.20.0"
cargo_metadata = "0.21.0"
camino = "1.1.10"
chalk-solve = { version = "0.103.0", default-features = false }
chalk-ir = "0.103.0"
Expand Down Expand Up @@ -138,7 +138,11 @@ rayon = "1.10.0"
rowan = "=0.15.15"
# Ideally we'd not enable the macros feature but unfortunately the `tracked` attribute does not work
# on impls without it
salsa = { version = "0.23.0", default-features = true, features = ["rayon","salsa_unstable", "macros"] }
salsa = { version = "0.23.0", default-features = true, features = [
"rayon",
"salsa_unstable",
"macros",
] }
salsa-macros = "0.23.0"
semver = "1.0.26"
serde = { version = "1.0.219" }
Expand Down
Loading
Loading