Giga Bowser
3e3fd4aabe
Use snippet placeholders for generated match arms
2024-11-01 12:35:01 -04:00
Laurențiu Nicola
9acf57c48e
Format code
2024-11-01 14:12:18 +02:00
Laurențiu Nicola
7303227589
Bump rustc crates
2024-11-01 13:38:35 +02:00
Laurențiu Nicola
d94c49c0e8
Merge from rust-lang/rust
2024-11-01 13:14:25 +02:00
Laurențiu Nicola
21544d8b40
Preparing for merge from rust-lang/rust
2024-11-01 13:14:16 +02:00
Chayim Refael Friedman
f0bf75d647
Parse patterns with leading pipe properly in all places
2024-10-31 15:32:37 +02:00
Lukas Wirth
b25a3de4d1
Merge pull request #18447 from ChayimFriedman2/cleanup-tylowerctx
...
Avoid interior mutability in `TyLoweringContext`
2024-10-31 12:48:17 +00:00
bjorn3
3cc0ba8337
Remove support for compressed dylib metadata from rust-analyzer
2024-10-31 12:48:09 +00:00
Lukas Wirth
2a9b851c3e
Merge pull request #18448 from Veykril/push-zwuuoytnmnqz
...
Move `child_by_source` from `hir-def` to `hir`
2024-10-31 08:42:59 +00:00
Lukas Wirth
bc862b897d
Move child_by_source from hir-def to hir
2024-10-31 09:28:08 +01:00
Lukas Wirth
7ca05b5432
Merge pull request #18437 from sam-mccall/publish_fixture
...
Publish test-fixture => ra_ap_test_fixture
2024-10-31 08:03:44 +00:00
Chayim Refael Friedman
5aff11042c
Avoid interior mutability in TyLoweringContext
...
This requires some serious code juggling.
2024-10-30 21:24:19 +02:00
Chayim Refael Friedman
6a6b61a918
Only parse safe as contextual kw in extern blocks
...
I don't like the party of `bool`s that is becoming, but two isn't worth a refactoring yet IMO.
2024-10-30 19:28:33 +02:00
Lukas Wirth
cee32578cb
Merge pull request #18304 from davidkurilla/docs-create-setup-document
...
docs: create setup documentation
2024-10-30 09:52:39 +00:00
Lukas Wirth
482e63d272
Merge pull request #18382 from dqkqd/issue-17042
...
fix: auto-complete import for aliased function and module
2024-10-30 09:42:46 +00:00
Lukas Wirth
5fe280e681
Merge pull request #18385 from Giga-Bowser/master
...
feat: Add assist to generate a type alias for a function
2024-10-30 09:36:55 +00:00
Lukas Wirth
3ab7a69e4c
Merge pull request #18436 from Veykril/lw-yvkqwpnwsouo
...
Do not render meta info when hovering usages
2024-10-30 09:21:35 +00:00
Jubilee Young
11f9217a33
rust-analyzer: rustc_abi::Abi => BackendRepr
2024-10-29 15:01:01 -07:00
Lukas Wirth
8a51cbf786
Style hover messages a bit differently
2024-10-29 16:59:48 +01:00
Sam McCall
711961df13
Publish test-fixture => ra_ap_test_fixture
2024-10-29 16:26:18 +01:00
Lukas Wirth
d8f6538bac
Do not render meta info when hovering usages
2024-10-29 15:34:17 +01:00
Lukas Wirth
c21de28911
Merge pull request #18432 from Veykril/lw-yptzmuxyvxxt
...
fix: Fix the server not honoring diagnostic refresh support
2024-10-29 10:32:11 +00:00
Lukas Wirth
14070659fd
fix: Fix the server not honoring diagnostic refresh support
2024-10-29 11:06:16 +01:00
Lukas Wirth
a1eb6b3e7d
Merge pull request #18427 from ChayimFriedman2/cleanup-ty
...
Cleanup TypeRef lowering
2024-10-29 10:00:44 +00:00
Laurențiu Nicola
49baaf0b2d
Bump rustc crates
2024-10-29 08:39:55 +02:00
Laurențiu Nicola
772d1383f7
Merge from rust-lang/rust
2024-10-29 08:13:34 +02:00
Laurențiu Nicola
4b27980870
Preparing for merge from rust-lang/rust
2024-10-29 08:13:20 +02:00
Chayim Refael Friedman
d7615a9854
Cleanup TypeRef lowering
...
By removing interior mutability from it.
2024-10-28 17:38:37 +02:00
Lukas Wirth
af764db2aa
Merge pull request #18420 from ChayimFriedman2/cfg-true-false
...
feat: Support `cfg(true)` and `cfg(false)`
2024-10-28 13:56:41 +00:00
Lukas Wirth
8e97f4067f
Merge pull request #18421 from Veykril/push-uxxwvwnqvomr
...
Move text-edit into ide-db
2024-10-28 13:52:16 +00:00
Lukas Wirth
b12859a138
Merge pull request #18413 from ShoyuVanilla/extern-crate-reexport
...
fix: Allow public re-export of `extern crate` import
2024-10-28 13:51:26 +00:00
Lukas Wirth
9a7fd6f4f0
Merge pull request #18422 from ChayimFriedman2/cursed-name-res
...
fix: Properly resolve prelude paths inside modules inside blocks
2024-10-28 13:45:19 +00:00
Lukas Wirth
003270d3e1
Merge pull request #18312 from LastExceed/symbolkind-variable
...
Report document symbols of kind `variable` for let statements
2024-10-28 13:40:42 +00:00
Lukas Wirth
86ae80c93b
Reformat
2024-10-28 14:37:52 +01:00
Lukas Wirth
c1551557c0
Move text-edit into ide-db
2024-10-28 14:37:41 +01:00
Lukas Wirth
25b0846e96
Merge pull request #18074 from ChayimFriedman2/typeref-source-map
...
internal: Build source map for `hir_def::TypeRef`s
2024-10-28 11:01:12 +00:00
Laurențiu Nicola
5346e847c4
Merge pull request #18256 from MoskalykA/use-is_none_or
...
Start using `Option::is_none_or`
2024-10-28 10:12:36 +00:00
Laurențiu Nicola
7ec20428cb
Merge pull request #18412 from lnicola/windows-no-gz
...
internal: Stop producing .gz artifacts for Windows
2024-10-28 10:11:29 +00:00
Jubilee Young
2a9239a105
rust-analyzer: Rename LayoutS to LayoutData
2024-10-27 22:32:58 -07:00
LastExceed
b889a11d79
add test
2024-10-27 23:29:14 +01:00
LastExceed
47e5759da9
add LetStmt arm
2024-10-27 23:29:14 +01:00
Chayim Refael Friedman
709805a5fd
Properly resolve prelude paths inside modules inside blocks
...
I.e. the following situation:
```
fn foo() {
mod bar {
fn qux() {
// Prelude path here (e.g. macro use prelude or extern prelude).
}
}
}
```
Those were previously unresolved, because, in order to support `self` and `super` properly, since #15148 we do not ascend block paths when there is a module in between, but only crate def maps register preludes, not block def maps, and we can't change this because block def map prelude can always be overridden by another block. E.g.
```
fn foo() {
struct WithTheSameNameAsPreludeItem;
{
WithTheSameNameAsPreludeItem
}
}
```
Here `WithTheSameNameAsPreludeItem` refer to the item from the top block, but if we would register prelude items in each block the child block would overwrite it incorrectly.
2024-10-27 19:23:12 +02:00
Shoyu Vanilla
0abb563bf1
fix: Allow public re-export of extern crate import
2024-10-27 23:44:44 +09:00
Lukas Wirth
14607bae1d
Merge pull request #18419 from ChayimFriedman2/leading-or
...
fix: Put leading `|` in patterns under `OrPat`
2024-10-27 11:25:16 +00:00
Chayim Refael Friedman
f50b201c86
Put leading | in patterns under OrPat
...
Previously it was one level above, and that caused problems with macros that expand to it, because macros expect to get only one top-level node.
2024-10-27 13:11:38 +02:00
Lukas Wirth
0d441c3b4f
Merge pull request #18410 from Veykril/veykril/push-lvwxpnowqrxk
...
internal: Invert token iteration order in macro mapping
2024-10-27 10:44:32 +00:00
Lukas Wirth
6c70806b31
Invert token iteration order in macro mapping
2024-10-27 11:32:12 +01:00
Lukas Wirth
66a81d3764
Merge pull request #18418 from ChayimFriedman2/explicitly-disable
...
feat: Split `macro-error` diagnostic so users can ignore only parts of it
2024-10-27 09:37:56 +00:00
Lukas Wirth
59dd6422cc
Merge pull request #18417 from ChayimFriedman2/hash-string
...
fix: Correctly handle `#""` in edition <2024
2024-10-27 09:28:47 +00:00
Chayim Refael Friedman
e970e07e10
Support cfg(true) and cfg(false)
...
As per RFC 3695.
2024-10-27 10:46:49 +02:00