Lukas Wirth
770df7ffbb
Merge binding_mode inlay hints into one
2024-10-22 17:12:16 +02:00
Lukas Wirth
7c29f8c5b7
Merge adjustment inlay hints into one
2024-10-22 16:56:13 +02:00
Lukas Wirth
7aad1a2c4e
Merge closure capture inlay hints into one
2024-10-22 16:29:15 +02:00
Marco Ieni
548224782c
Merge pull request #18372 from Kobzol/ci-merge-queue
...
Switch CI from bors to merge queues
2024-10-22 12:57:57 +00:00
bors
408f924758
Auto merge of #18370 - duncpro:goto-def-ranges, r=Veykril
...
feat: resolve range patterns to their structs
Closes #18367
2024-10-22 12:24:25 +00:00
bors
7cad4da1ab
Auto merge of #18368 - Veykril:test-lsif_contains_generated_macros, r=lnicola
...
tests: Add `lsif_contains_generated_constant` test
Closes https://github.com/rust-lang/rust-analyzer/pull/18309
2024-10-22 12:10:07 +00:00
Jakub Beránek
7c315cfbe6
Switch CI from bors to merge queues
2024-10-22 14:04:24 +02:00
bors
0b906b6e3d
Auto merge of #18349 - dqkqd:issue-18344, r=Veykril
...
feat: render docs from aliased type when type has no docs
Trying to close #18344
- [x] ~Find the docs by traversing upwards if the type itself has none but aliasing for another type that might have.~
- [x] Show docs from aliased type.
- [x] Showing description that we are displaying documentation for different definition in hover box.

2024-10-22 11:56:16 +00:00
bors
919ba41fee
Auto merge of #18371 - Veykril:veykril/push-kwttrusywysp, r=Veykril
...
fix: Fix incorrect parsing of use bounds
Fixes https://github.com/rust-lang/rust-analyzer/issues/18357
2024-10-22 11:42:11 +00:00
Lukas Wirth
6f71369428
fix: Fix incorrect parsing of use bounds
...
Also lower them a bit more
2024-10-22 13:34:26 +02:00
Khanh Duong Quoc
b70feec206
feat: render docs from aliased type when docs are missing
2024-10-22 20:27:05 +09:00
Duncan Proctor
273d9d74f9
tidy
2024-10-22 06:54:44 -04:00
Duncan Proctor
734710ff44
tidy
2024-10-22 06:37:12 -04:00
Duncan Proctor
b181cac478
remove duplicate test
2024-10-22 06:25:13 -04:00
Duncan Proctor
21636ac046
resolve range patterns to the their struct types
2024-10-22 06:20:16 -04:00
Lukas Wirth
76368b805d
Fix new nightly lints
2024-10-22 11:48:41 +02:00
Johann Hemmann
ec4b9e0901
tests: Add lsif_contains_generated_constant test
2024-10-22 11:38:54 +02:00
Lukas Wirth
5e3561ea06
Cleanup file structure proto handling
2024-10-22 10:51:08 +02:00
Lukas Wirth
3e02349076
Fix status bar messagen not being marked markdown
2024-10-22 10:51:04 +02:00
bors
5087af2bf5
Auto merge of #18362 - duncpro:goto-def-ranges, r=Veykril
...
feat: goto definition on range operators
Closes #18342
2024-10-22 07:49:18 +00:00
Duncan Proctor
b763913329
tidy
2024-10-22 03:19:47 -04:00
Laurențiu Nicola
efc2ba2d90
Replace some LayoutError variants with the rustc_abi errors
2024-10-22 10:19:25 +03:00
Laurențiu Nicola
420b665c60
Bump rustc crates
2024-10-22 10:12:46 +03:00
Laurențiu Nicola
5d540f4cc9
Merge from rust-lang/rust
2024-10-22 10:12:22 +03:00
Laurențiu Nicola
5038ee7282
Preparing for merge from rust-lang/rust
2024-10-22 10:12:20 +03:00
Duncan Proctor
88b9b9d5da
goto definition on RangeFrom, RangeFull, RangeTo, and RangeToInclusive links to respective struct
2024-10-22 03:11:23 -04:00
duncanproctor
8e69377c46
Move explicit range handling out of goto_definition, use OperatorClass instead
2024-10-21 20:07:07 -04:00
bors
fa815a1cbb
Auto merge of #18360 - roife:safe-kw-3, r=Veykril
...
feat: better completions for extern blcoks
This PR refactors `add_keywords` (making it much clearer!) and enhances completion for `extern` blocks.
It is recommended to reviewing the changes in order of the commits:
- The first commit (f3c4dde0a4917a2bac98605cc045eecfb4d69872) doesn’t change any logic but refactors parts of the `add_keywords` function and adds detailed comments.
- The second commit (5dcc1ab649bf8a49cadf006d620871b12f093a2f) improves completion for `extern` kw and extern blocks.
2024-10-21 17:59:05 +00:00
roife
ad27b8225f
minor: refactor completions in item_list
2024-10-22 01:31:57 +08:00
duncanproctor
e46ea16fd8
GotoDefinition on a Range or InclusiveRange operator will link to the struct definition
2024-10-21 11:29:05 -04:00
bors
20864efcdf
Auto merge of #18361 - Veykril:veykril/push-uzsokssoyznx, r=Veykril
...
fix: Fix token downmapping failing for include! inputs
Supercedes https://github.com/rust-lang/rust-analyzer/pull/18325
Fixes https://github.com/rust-lang/rust-analyzer/pull/18325
Fixes https://github.com/rust-lang/rust-analyzer/issues/18313
Fixes https://github.com/rust-lang/rust-analyzer/issues/18314
2024-10-21 15:27:42 +00:00
Lukas Wirth
ea03a06411
fix: Fix token downmapping failing for include! inputs
2024-10-21 17:22:18 +02:00
roife
ba3b7c7961
feat: better completions for extern blcoks
2024-10-21 22:23:16 +08:00
roife
e2dd95feb5
refactor add_keywords in ide-completions for clarity
2024-10-21 22:23:01 +08:00
bors
87f4dad8dc
Auto merge of #18359 - Daanoz:support-initializeStopped, r=Veykril
...
feat: support initializeStopped setting
See #18356
Add option to start rust-analyzer in "stopped" state when the extension activates.
2024-10-21 14:11:33 +00:00
bors
0d6202dd45
Auto merge of #18294 - Giga-Bowser:master, r=Veykril
...
Add wrap/unwrap return type in Option
I pretty much just copied over the code and tests for wrapping/unwrapping return types in `Result` and then did a bunch of find and replace changes.
I handled unwrapping statements returning `None` by just replacing `None` with the unit type, but I'm open to suggestions for more intuitive behavior here.
2024-10-21 13:56:01 +00:00
bors
a41e3155dd
Auto merge of #18337 - dqkqd:issue-18287, r=Veykril
...
fix: private items are shown in completions for modules in fn body
Close : #18287
2024-10-21 13:41:27 +00:00
Khanh Duong Quoc
8b4a94f261
fix: private items are shown in completions for modules in fn body
2024-10-21 21:42:46 +09:00
Lukas Wirth
2adc6c33c9
fix: FIx mbe bench tests being iteration order dependent
2024-10-21 11:54:49 +02:00
Lukas Wirth
e9da1dce05
Update ide tests
2024-10-21 11:28:19 +02:00
Lukas Wirth
bbaeeb8262
Fix recursive_adt fixture
2024-10-21 11:28:18 +02:00
Noratrieb
657a925710
Update rustc-hash to version 2
...
This brings in the new optimized algorithm that was shown to have small performance benefits for
rustc.
2024-10-21 11:28:18 +02:00
Daan Sieben
4dd2af5113
feat: support initializeStopped setting
2024-10-21 10:58:54 +02:00
bors
f21a01f5ef
Auto merge of #18354 - roife:safe-kw-2, r=lnicola
...
fix: classify `safe` as a contextual kw
fix #18352
2024-10-20 20:01:48 +00:00
roife
8183f6b473
fix: classify safe as a contextual kw
2024-10-21 02:56:21 +08:00
Chayim Refael Friedman
3bbf1b257f
Update Cargo.lock
2024-10-20 18:50:05 +03:00
roife
1b90ae4892
fix: do not emit unsafe diagnositcs for safe statics in extern blocks
2024-10-20 19:49:57 +08:00
roife
ccfc8e2063
feat: initial support for safe_kw in extern blocks
2024-10-20 17:12:52 +08:00
Stuart Cook
63fccf0c2f
Rollup merge of #131942 - workingjubilee:reduce-haruspicy, r=lukas-code,lnicola
...
compiler: Adopt rust-analyzer impls for `LayoutCalculatorError`
We're about to massively churn the internals of `rustc_abi`. To minimize the immediate and future impact on rust-analyzer, as a subtree that depends on this crate, grow some API on `LayoutCalculatorError` that reflects their uses of it. This way we can nest the type in theirs, and they can just call functions on it without having to inspect and flatten-out its innards.
2024-10-20 14:06:04 +11:00
Jubilee Young
e1d6164607
rust-analyzer: Nest LayoutCalculatorError in hir_ty::LayoutError
2024-10-19 11:09:24 -07:00