Lukas Wirth
e6ea353d94
Improve error recovery when method-calling an assoc function
2025-02-16 11:49:48 +01:00
Lukas Wirth
b9f76287c2
Set RUSTUP_TOOLCHAIN
when loading sysroot workspace
2025-02-16 10:54:08 +01:00
David Richey
a297d438bc
Apply cfg.setTest to json projects
2025-02-12 14:05:34 -06:00
Lukas Wirth
c661e5e14e
Merge pull request #19142 from Veykril/push-upwqztrsuwpz
...
Spawn toolchain querying processes in parallel
2025-02-12 16:04:57 +00:00
Lukas Wirth
172a504b56
Rename sysroot src/lib related things
2025-02-12 16:51:27 +01:00
Lukas Wirth
26a5e24507
Merge pull request #19148 from Veykril/push-ptnykrwnwwlu
...
Improve error recovery when method-calling a field
2025-02-12 15:51:04 +00:00
Lukas Wirth
c942fb6061
Improve error recovery when method-calling a field
2025-02-12 16:37:15 +01:00
Lukas Wirth
8a8ff99273
Spawn toolchain querying processes in parallel
2025-02-12 16:24:49 +01:00
Lukas Wirth
12d87252ac
Merge pull request #18928 from roife/fix-18918
...
fix: handle character boundary in search mode
2025-02-12 14:07:51 +00:00
Lukas Wirth
8e81cc0772
Merge pull request #19109 from Veykril/push-nzpuuqommpnq
...
fix: Do not show safety hints for extern items lacking semantics
2025-02-12 13:58:56 +00:00
roife
608d7e14d7
fix: handle character boundary in search mode
2025-02-12 14:47:28 +01:00
Lukas Wirth
e0814742f0
fix: Do not show safety hints for extern items lacking semantics
2025-02-12 14:43:51 +01:00
Lukas Wirth
c9838ec62d
Merge pull request #19111 from ShoyuVanilla/issue-19021
...
fix: Apply adjustments to proper expr when invoking `CoerceMany`
2025-02-12 13:42:52 +00:00
Lukas Wirth
aa64a6da0e
Merge pull request #19110 from eagr/panic-context
...
Simplify panic_context
2025-02-12 13:41:11 +00:00
Lukas Wirth
b636cf93e5
Merge pull request #19125 from ChayimFriedman2/cfg-attr-fast
...
fix: Censor cfg_attr for attribute macros
2025-02-12 13:38:24 +00:00
Lukas Wirth
622ef64f93
Merge pull request #18995 from alibektas/12210
...
fix: Lower range pattern bounds to expressions
2025-02-12 11:58:33 +00:00
Lukas Wirth
5235caf402
Merge pull request #19129 from ChayimFriedman2/snippet-macro
...
fix: Fix postfix completions inside macros
2025-02-12 11:55:46 +00:00
gohome001
d3d455d4fb
minor: don't show drop hints for other pattern
2025-02-12 17:18:42 +08:00
Lukas Wirth
5af2d6abea
Propogate error types in mir type projections
2025-02-12 09:24:33 +01:00
Chayim Refael Friedman
8aa4ae5e69
Merge pull request #19117 from gohome001/implicit-drop-inlay-hints-bug
...
Fix: don't emit implicit drop inlay hints for macro
2025-02-11 13:18:04 +00:00
Lukas Wirth
78e7515a30
Merge pull request #18998 from ChayimFriedman2/exclude
...
fix: Make `rust-analyzer.files.excludeDirs` work, actually
2025-02-11 11:41:54 +00:00
gohome001
42f11d49ee
add test case for ignoring inlay hint for macro call
2025-02-11 15:27:34 +08:00
gohome001
55dbf3949d
don't emit implicit drop inlay hints for macro
2025-02-11 15:24:46 +08:00
Lukas Wirth
f5e7172e96
Merge pull request #19124 from jyn514/range-fmt-off-by-one
...
Fix off-by-one error in RangeFormatting
2025-02-10 15:25:54 +00:00
Chayim Refael Friedman
d6f3ff1b9c
Fix postfix completions inside macros
...
Previously the receiver text was taken directly from the AST, which in macros is missing trivia, leading to corruption (or just unintended replacement of user code).
Now we upmap the range, and extract the original file text in it.
2025-02-10 16:38:13 +02:00
Chayim Refael Friedman
f01f900ff7
Merge pull request #19088 from Hmikihiro/all_remove_duplicate_module_adt
...
fix: if item exsits on module, resolve as module instead of type
2025-02-10 09:02:30 +00:00
Hayashi Mikihiro
c84cec1547
Shadowing BuiltinType by Module
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-02-10 17:46:43 +09:00
Laurențiu Nicola
bf51af1a6d
Merge from rust-lang/rust
2025-02-10 07:49:43 +02:00
Chayim Refael Friedman
933832008b
Censor cfg_attr for attribute macros
...
This is not documented (and I discovered that from experimenting and looking at the compiler's source code), but cfg_attrs *on the same level* as the attribute macro should be processed before it is expanded. cfg_attrs *below* should not (and this is contrary to what happens with derive macros, where both should be processed).
2025-02-10 01:28:28 +02:00
jyn
66253b6553
fix target dir test
2025-02-09 16:34:01 -05:00
jyn
1db9402558
fix off-by-one error
2025-02-09 15:23:53 -05:00
Ali Bektas
97251b3e28
Check if PatPtr resolves to ExprId
2025-02-09 17:31:45 +01:00
Ali Bektas
76b93c0d1f
Fix clippy errors
2025-02-09 17:31:09 +01:00
Ali Bektas
419231c79d
Remove fixme and add a missing test attribute
2025-02-09 17:31:09 +01:00
Ali Bektas
bd369a83c0
Remove dbg lines
2025-02-09 17:31:09 +01:00
Ali Bektas
18f90a9d2a
resolve_bind_pat_to_const does not early return if expr
2025-02-09 17:31:09 +01:00
Ali Bektas
574ea0296c
make SourceAnalyzer::pat_id return ExprOrPatId
...
Not all patterns are mapped to Pats. As such, it was necessary to change
the ret type Option<PatId> to Option<ExprOrPatId>
2025-02-09 17:31:09 +01:00
Ali Bektas
8956b1e1ba
Lower ast::Ident to hir::Path when lowering RangePats
2025-02-09 17:31:09 +01:00
Julian Eager
5897755f22
simplify panic_context
2025-02-08 01:39:07 +08:00
Shoyu Vanilla
11ffa88505
fix: Apply adjustments to proper expr when invoking CoerceMany
2025-02-08 02:38:41 +09:00
Lukas Wirth
039ac844f1
Merge pull request #19104 from jnyfah/some-branch
...
option to disable inlay Type hints for Closure parameters
2025-02-07 10:45:38 +00:00
jnyfah
7d1fedc4f3
minor changes
2025-02-07 10:50:45 +01:00
Lukas Wirth
ef05ca5d3b
Merge pull request #19106 from ShoyuVanilla/issue-18682
...
fix: Resolve projection types before checking casts
2025-02-07 08:13:12 +00:00
Shoyu Vanilla
b7b4dd5afc
fix: Resolve projection types before checking casts
2025-02-07 09:51:32 +09:00
David Richey
4d650702af
fix: Don't emit empty scip occurrence for builtins
2025-02-06 12:22:58 -06:00
jnyfah
6b328750e5
collapsing if statement
2025-02-06 16:18:15 +01:00
jnyfah
4522bf42ca
closure parameter inlay hints
2025-02-06 15:55:56 +01:00
Lukas Wirth
ca47cddc31
Merge pull request #19099 from Veykril/push-qxylslwltsqy
...
Use interior mutability for loaded `ProcMacrorv::expanders`
2025-02-05 11:17:21 +00:00
Lukas Wirth
5ec0057418
Use interior mutability for loaded ProcMacrorv::expanders
2025-02-05 12:01:57 +01:00
Chayim Refael Friedman
549b49fdc8
Do not include excluded files even when the client opens them
...
This require a pretty big modification, because this is a new kind of file: exists - but ignore it.
2025-02-05 11:11:25 +02:00