Skip to content

Subtree update of rust-analyzer #132029

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 48 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
90b181c
Add wrap/unwrap return type in Option
Giga-Bowser Oct 13, 2024
2af15d2
line-index method to allow clamping column to line length
krobelus Oct 15, 2024
7c2373e
Re-use code for wrapping/unwrapping return types
Giga-Bowser Oct 17, 2024
325d48f
internal: fix lldb-dap unconditionally calling rustc
davidbarsky Oct 17, 2024
8df5f37
fix: Fix CI running analysis-stats incorrectly against the standard l…
Veykril Oct 18, 2024
6b919c4
Auto merge of #18328 - Veykril:veykril/push-zrzmmyqzqwyr, r=Veykril
bors Oct 18, 2024
c9f2a0e
internal: Add more trivially `Sized` types to `is_sized` check
Veykril Oct 18, 2024
5b85f1c
Auto merge of #18331 - Veykril:veykril/push-tsolukqqyllz, r=Veykril
bors Oct 18, 2024
03cfa8e
Auto merge of #18243 - krobelus:clamp-position-character, r=Veykril
bors Oct 18, 2024
4fc5172
Auto merge of #18320 - davidbarsky:davidbarsky/fix-lldb-dap-calling-r…
bors Oct 18, 2024
db6824a
internal: fix lldb-dap unconditionally calling rustc
davidbarsky Oct 17, 2024
f01ebd6
vscode: update some dependencies
davidbarsky Oct 17, 2024
8305c19
Auto merge of #18324 - davidbarsky:davidbarsky/fix-some-node-dependen…
bors Oct 18, 2024
00318ba
Clamp Position::character to line length
krobelus Oct 5, 2024
0790356
Auto merge of #18300 - krobelus:clamp-position-character-2, r=Veykril
bors Oct 18, 2024
1a93651
Fix editorconfig glob
SomeoneToIgnore Oct 18, 2024
0590422
Increase TOKEN_LIMIT for hir-expand
xuwaters Oct 19, 2024
f075375
Auto merge of #18335 - SomeoneToIgnore:editorconfig-glob, r=lnicola
bors Oct 19, 2024
0c37404
Auto merge of #18336 - xuwaters:patch-1, r=lnicola
bors Oct 19, 2024
2372217
Combine entry points for wrapping/unwrapping return types
Giga-Bowser Oct 19, 2024
ccfc8e2
feat: initial support for safe_kw in extern blocks
roife Oct 20, 2024
1b90ae4
fix: do not emit unsafe diagnositcs for safe statics in extern blocks
roife Oct 20, 2024
5f404f0
Auto merge of #18350 - roife:safe-kw-1, r=lnicola
bors Oct 20, 2024
3bbf1b2
Update Cargo.lock
ChayimFriedman2 Oct 20, 2024
d2c7e0f
Auto merge of #18353 - ChayimFriedman2:cargo-lock, r=lnicola
bors Oct 20, 2024
8183f6b
fix: classify `safe` as a contextual kw
roife Oct 20, 2024
f21a01f
Auto merge of #18354 - roife:safe-kw-2, r=lnicola
bors Oct 20, 2024
4dd2af5
feat: support initializeStopped setting
Daanoz Oct 21, 2024
657a925
Update rustc-hash to version 2
Noratrieb Aug 24, 2024
bbaeeb8
Fix recursive_adt fixture
Veykril Sep 3, 2024
e9da1dc
Update ide tests
Veykril Sep 3, 2024
2adc6c3
fix: FIx mbe bench tests being iteration order dependent
Veykril Oct 21, 2024
941c443
Auto merge of #17954 - Noratrieb:rustc-blazing-hash, r=Veykril
bors Oct 21, 2024
8b4a94f
fix: private items are shown in completions for modules in fn body
dqkqd Oct 19, 2024
a41e315
Auto merge of #18337 - dqkqd:issue-18287, r=Veykril
bors Oct 21, 2024
0d6202d
Auto merge of #18294 - Giga-Bowser:master, r=Veykril
bors Oct 21, 2024
87f4dad
Auto merge of #18359 - Daanoz:support-initializeStopped, r=Veykril
bors Oct 21, 2024
e2dd95f
refactor add_keywords in ide-completions for clarity
roife Oct 21, 2024
ba3b7c7
feat: better completions for extern blcoks
roife Oct 21, 2024
ea03a06
fix: Fix token downmapping failing for include! inputs
Veykril Oct 21, 2024
20864ef
Auto merge of #18361 - Veykril:veykril/push-uzsokssoyznx, r=Veykril
bors Oct 21, 2024
ad27b82
minor: refactor completions in item_list
roife Oct 21, 2024
fa815a1
Auto merge of #18360 - roife:safe-kw-3, r=Veykril
bors Oct 21, 2024
5038ee7
Preparing for merge from rust-lang/rust
lnicola Oct 22, 2024
5d540f4
Merge from rust-lang/rust
lnicola Oct 22, 2024
420b665
Bump rustc crates
lnicola Oct 22, 2024
efc2ba2
Replace some LayoutError variants with the rustc_abi errors
lnicola Oct 22, 2024
ca51c1e
Auto merge of #18364 - lnicola:sync-from-rust, r=lnicola
bors Oct 22, 2024
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
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ max_line_length = 100
[*.md]
indent_size = 2

[*.{yml, yaml}]
[*.{yml,yaml}]
indent_size = 2
6 changes: 3 additions & 3 deletions src/tools/rust-analyzer/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats .

- name: Run analysis-stats on rust std library
- name: Run analysis-stats on the rust standard libraries
if: matrix.os == 'ubuntu-latest'
env:
RUSTC_BOOTSTRAP: 1
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std
RUSTC_BOOTSTRAP: 1
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps --no-sysroot --no-test $(rustc --print sysroot)/lib/rustlib/src/rust/library/

- name: clippy
if: matrix.os == 'windows-latest'
Expand Down
86 changes: 46 additions & 40 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ dependencies = [
"intern",
"la-arena 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"lz4_flex",
"rustc-hash",
"rustc-hash 2.0.0",
"salsa",
"semver",
"span",
Expand Down Expand Up @@ -161,7 +161,7 @@ dependencies = [
"expect-test",
"intern",
"oorandom",
"rustc-hash",
"rustc-hash 2.0.0",
"syntax",
"syntax-bridge",
"tt",
Expand Down Expand Up @@ -216,7 +216,7 @@ dependencies = [
"chalk-derive",
"chalk-ir",
"chalk-solve",
"rustc-hash",
"rustc-hash 1.1.0",
"tracing",
]

Expand All @@ -232,7 +232,7 @@ dependencies = [
"indexmap",
"itertools",
"petgraph",
"rustc-hash",
"rustc-hash 1.1.0",
"tracing",
]

Expand Down Expand Up @@ -513,7 +513,7 @@ dependencies = [
"hir-ty",
"intern",
"itertools",
"rustc-hash",
"rustc-hash 2.0.0",
"smallvec",
"span",
"stdx",
Expand Down Expand Up @@ -547,7 +547,7 @@ dependencies = [
"mbe",
"ra-ap-rustc_abi",
"ra-ap-rustc_parse_format",
"rustc-hash",
"rustc-hash 2.0.0",
"rustc_apfloat",
"smallvec",
"span",
Expand Down Expand Up @@ -577,7 +577,7 @@ dependencies = [
"limit",
"mbe",
"parser",
"rustc-hash",
"rustc-hash 2.0.0",
"smallvec",
"span",
"stdx",
Expand Down Expand Up @@ -616,7 +616,7 @@ dependencies = [
"ra-ap-rustc_abi",
"ra-ap-rustc_index",
"ra-ap-rustc_pattern_analysis",
"rustc-hash",
"rustc-hash 2.0.0",
"rustc_apfloat",
"scoped-tls",
"smallvec",
Expand Down Expand Up @@ -731,13 +731,13 @@ dependencies = [
"indexmap",
"itertools",
"limit",
"line-index 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"line-index 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"memchr",
"nohash-hasher",
"parser",
"profile",
"rayon",
"rustc-hash",
"rustc-hash 2.0.0",
"span",
"stdx",
"syntax",
Expand Down Expand Up @@ -834,7 +834,7 @@ version = "0.0.0"
dependencies = [
"dashmap",
"hashbrown",
"rustc-hash",
"rustc-hash 2.0.0",
"sptr",
"triomphe",
]
Expand Down Expand Up @@ -939,7 +939,7 @@ version = "0.0.0"

[[package]]
name = "line-index"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"nohash-hasher",
"oorandom",
Expand All @@ -948,9 +948,9 @@ dependencies = [

[[package]]
name = "line-index"
version = "0.1.1"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67d61795376ae2683928c218fda7d7d7db136fd38c06b7552904667f0d55580a"
checksum = "3e27e0ed5a392a7f5ba0b3808a2afccff16c64933312c84b57618b49d1209bd2"
dependencies = [
"nohash-hasher",
"text-size",
Expand Down Expand Up @@ -1051,7 +1051,7 @@ dependencies = [
"intern",
"parser",
"ra-ap-rustc_lexer",
"rustc-hash",
"rustc-hash 2.0.0",
"smallvec",
"span",
"stdx",
Expand Down Expand Up @@ -1345,7 +1345,7 @@ dependencies = [
"indexmap",
"intern",
"paths",
"rustc-hash",
"rustc-hash 2.0.0",
"serde",
"serde_json",
"span",
Expand Down Expand Up @@ -1435,7 +1435,7 @@ dependencies = [
"itertools",
"la-arena 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"paths",
"rustc-hash",
"rustc-hash 2.0.0",
"semver",
"serde",
"serde_json",
Expand Down Expand Up @@ -1497,9 +1497,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_abi"
version = "0.71.0"
version = "0.73.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6999d098000b98415939f13158dac78cb3eeeb7b0c073847f3e4b623866e27c"
checksum = "879ece0781e3c1cb670b9f29775c81a43a16db789d1296fad6bc5c74065b2fac"
dependencies = [
"bitflags 2.6.0",
"ra-ap-rustc_index",
Expand All @@ -1508,9 +1508,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_index"
version = "0.71.0"
version = "0.73.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae9fb312d942817dab10790881f555928c1f6a11a85186e8e573ad4a86c7d3be"
checksum = "6910087ff89bb9f3db114bfcd86b5139042731fe7278d3ff4ceaa69a140154a7"
dependencies = [
"arrayvec",
"ra-ap-rustc_index_macros",
Expand All @@ -1519,9 +1519,9 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_index_macros"
version = "0.71.0"
version = "0.73.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "766e3990eb1066a06deefc561b5a01b32ca5c9211feea31cbf4ed50611519872"
checksum = "3b6f7bd12b678fbb37444ba77f3b0cfc13b7394a6dc7b0c799491fc9df0a9997"
dependencies = [
"proc-macro2",
"quote",
Expand All @@ -1530,32 +1530,32 @@ dependencies = [

[[package]]
name = "ra-ap-rustc_lexer"
version = "0.71.0"
version = "0.73.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4afa98eb7889c137d5a3f1cd189089e16da04d1e4837d358a67aa3dab10ffbe"
checksum = "119bc05b5b6bc3e7f5b67ce8b8080e185da94bd83c447f91b6b3f3ecf60cbab1"
dependencies = [
"unicode-properties",
"unicode-xid",
]

[[package]]
name = "ra-ap-rustc_parse_format"
version = "0.71.0"
version = "0.73.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9234c96ffb0565286790407fb7eb7f55ebf69267de4db382fdec0a17f14b0e2"
checksum = "70ed6150ae71d905c064dc88d7824ebb0fa81083f45d7477cba7b57176f2f635"
dependencies = [
"ra-ap-rustc_index",
"ra-ap-rustc_lexer",
]

[[package]]
name = "ra-ap-rustc_pattern_analysis"
version = "0.71.0"
version = "0.73.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "273d5f72926a58c7eea27aebc898d1d5b32d23d2342f692a94a2cf8746aa4a2f"
checksum = "6e830862a0ec85fce211d34735315686bb8d6a12d418d6d735fb534aa1cd3293"
dependencies = [
"ra-ap-rustc_index",
"rustc-hash",
"rustc-hash 2.0.0",
"rustc_apfloat",
"smallvec",
"tracing",
Expand Down Expand Up @@ -1640,7 +1640,7 @@ dependencies = [
"countme",
"hashbrown",
"memoffset",
"rustc-hash",
"rustc-hash 1.1.0",
"text-size",
]

Expand Down Expand Up @@ -1680,7 +1680,7 @@ dependencies = [
"profile",
"project-model",
"rayon",
"rustc-hash",
"rustc-hash 2.0.0",
"scip",
"semver",
"serde",
Expand Down Expand Up @@ -1717,6 +1717,12 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"

[[package]]
name = "rustc-hash"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152"

[[package]]
name = "rustc_apfloat"
version = "0.2.1+llvm-462a31f5a5ab"
Expand Down Expand Up @@ -1746,7 +1752,7 @@ dependencies = [
"oorandom",
"parking_lot",
"rand",
"rustc-hash",
"rustc-hash 2.0.0",
"salsa-macros",
"smallvec",
"tracing",
Expand Down Expand Up @@ -1898,7 +1904,7 @@ version = "0.0.0"
dependencies = [
"hashbrown",
"la-arena 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc-hash",
"rustc-hash 2.0.0",
"salsa",
"stdx",
"syntax",
Expand Down Expand Up @@ -1967,7 +1973,7 @@ dependencies = [
"ra-ap-rustc_lexer",
"rayon",
"rowan",
"rustc-hash",
"rustc-hash 2.0.0",
"rustc_apfloat",
"smol_str",
"stdx",
Expand All @@ -1983,7 +1989,7 @@ version = "0.0.0"
dependencies = [
"intern",
"parser",
"rustc-hash",
"rustc-hash 2.0.0",
"span",
"stdx",
"syntax",
Expand All @@ -2000,7 +2006,7 @@ dependencies = [
"cfg",
"hir-expand",
"intern",
"rustc-hash",
"rustc-hash 2.0.0",
"span",
"stdx",
"test-utils",
Expand All @@ -2014,7 +2020,7 @@ dependencies = [
"dissimilar",
"paths",
"profile",
"rustc-hash",
"rustc-hash 2.0.0",
"stdx",
"text-size",
"tracing",
Expand Down Expand Up @@ -2361,7 +2367,7 @@ dependencies = [
"indexmap",
"nohash-hasher",
"paths",
"rustc-hash",
"rustc-hash 2.0.0",
"stdx",
"tracing",
]
Expand All @@ -2374,7 +2380,7 @@ dependencies = [
"notify",
"paths",
"rayon",
"rustc-hash",
"rustc-hash 2.0.0",
"stdx",
"tracing",
"vfs",
Expand Down
14 changes: 7 additions & 7 deletions src/tools/rust-analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@ tt = { path = "./crates/tt", version = "0.0.0" }
vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
vfs = { path = "./crates/vfs", version = "0.0.0" }

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

# local crates that aren't published to crates.io. These should not have versions.
test-fixture = { path = "./crates/test-fixture" }
test-utils = { path = "./crates/test-utils" }

# In-tree crates that are published separately and follow semver. See lib/README.md
line-index = { version = "0.1.1" }
line-index = { version = "0.1.2" }
la-arena = { version = "0.3.1" }
lsp-server = { version = "0.7.6" }

Expand Down Expand Up @@ -136,7 +136,7 @@ process-wrap = { version = "8.0.2", features = ["std"] }
pulldown-cmark-to-cmark = "10.0.4"
pulldown-cmark = { version = "0.9.0", default-features = false }
rayon = "1.8.0"
rustc-hash = "1.1.0"
rustc-hash = "2.0.0"
semver = "1.0.14"
serde = { version = "1.0.192", features = ["derive"] }
serde_json = "1.0.108"
Expand Down
Loading
Loading