Lukas Wirth
1e1571e1c8
fix: Fix new nightly lints
2025-03-31 13:27:54 +02:00
Lukas Wirth
2b382eb772
fix: Cleanup param name inlay hint filtering
2025-03-31 09:40:57 +02:00
Lukas Wirth
faf1b49a9a
fix: Fix, clarify and require a value for proc_macro_cwd
of CrateData
2025-03-29 08:08:48 +01:00
Lukas Wirth
dd2354c985
Merge pull request #19435 from Veykril/push-owstqqlrtsko
...
fix: Fix closure return inlayhints using macro ranges
2025-03-24 07:00:54 +00:00
Lukas Wirth
d9b08e4431
Merge pull request #19430 from Veykril/push-wknpypxuyrsz
...
chore: Bump dependencies
2025-03-24 06:48:24 +00:00
Lukas Wirth
c760360abf
fix: Fix closure return inlayhints using macro ranges
2025-03-24 07:45:31 +01:00
Lukas Wirth
37acea8052
Merge pull request #19400 from Shourya742/2025-03-20-fix-syntax-highlighting
...
Fix missing syntax highlighting for `&raw const` / `&raw mut` in all files.
2025-03-23 07:49:19 +00:00
Lukas Wirth
500ea05aef
chore: Bump dependencies
2025-03-23 08:46:10 +01:00
Lukas Wirth
3bf18d4eba
Merge pull request #19419 from ShoyuVanilla/issue-15132
...
Render layout and other extra information on hovering `Self`
2025-03-22 17:56:21 +00:00
Shoyu Vanilla
ecc1ff8f33
Render layout and other extra informations on hovering Self
2025-03-22 23:53:59 +09:00
Felicián Németh
f2ad0fcb21
Speed up resolving "Generate delegate method" assist (part 2)
...
Make it compile by adding a `None` subtype to rest of the AssistId
instantiations.
2025-03-22 09:58:44 +01:00
bit-aloo
cfac2c35dd
add test for &raw const/&raw mut is not syntax-highlighted in all files
2025-03-21 20:57:21 +05:30
bit-aloo
02cd8c5c90
change from krate to Option<krate> in syntax highlighting to incorporate modules which are not part of any crate
2025-03-21 20:56:53 +05:30
Lukas Wirth
3edfbcd502
Merge pull request #19348 from jnyfah/some-branch
...
Add text edit support for return type hints on non-block body closures
2025-03-21 14:15:06 +00:00
Lukas Wirth
d6dc1bf05e
refactor: Reduce codegen burden for SyntaxKind
2025-03-21 12:14:39 +01:00
jnyfah
a0638e5f64
No edit if no body
2025-03-17 18:03:21 +01:00
jnyfah
061a643f64
some changes
2025-03-17 16:48:46 +01:00
Lukas Wirth
a505420751
chore: Bump Edition::CURRENT
to 2024
2025-03-17 12:29:19 +01:00
Lukas Wirth
b5eedad8e3
refactor: Remove unnecessary Arc
2025-03-16 10:27:48 +01:00
BenjaminBrienen
92ccf3dd8b
cargo fmt
2025-03-15 21:32:01 +01:00
BenjaminBrienen
7535bb4661
cargo fmt
2025-03-15 21:32:01 +01:00
BenjaminBrienen
7f1912c748
cargo clippy --fix
2025-03-15 21:32:01 +01:00
BenjaminBrienen
aad66c7bf1
Fix 2024 syntax errors
2025-03-15 21:32:01 +01:00
Lukas Wirth
02a793bd59
chore: Remove legacy SyntaxContextId
re-export
2025-03-15 17:09:17 +01:00
David Barsky
788232b355
internal: don't panic when the crate graph isn't ready #19351
2025-03-13 15:14:08 -04:00
jnyfah
1bbc0fbaa5
remove fixme
2025-03-13 10:53:34 +01:00
jnyfah
35443fac49
insert braces for closure
2025-03-13 09:04:47 +01:00
Chayim Refael Friedman
c94e9efbef
Salsify the crate graph
...
I.e. make it not one giant input but multiple, for incrementality and decreased memory usage for Salsa 3 reasons.
2025-03-12 21:02:30 +02:00
David Barsky
74620e64ec
internal: port rust-analyzer to new Salsa
2025-03-10 13:30:51 -04:00
Lukas Wirth
5a742d3da9
Merge pull request #19326 from Veykril/push-vovuxzkzrowp
...
Add missing name-ref parents to syntactic highlighting
2025-03-10 11:47:15 +00:00
Lukas Wirth
7ae98626fc
Add missing name-ref parents to syntactic highlighting
2025-03-10 12:31:38 +01:00
Lukas Wirth
f81fcabdf9
Merge pull request #19332 from Veykril/push-trvznlqsvtyq
...
Make change annotations per text-edit
2025-03-10 11:25:13 +00:00
Lukas Wirth
70066399f0
Make change annotations per text-edit
2025-03-10 12:08:42 +01:00
Lukas Wirth
27a5b1ba0c
Merge pull request #19330 from ChayimFriedman2/normalize-projection
...
fix: Normalize projections in evaluated const display and layout calculation
2025-03-10 09:15:35 +00:00
Chayim Refael Friedman
62e7d2851b
Warn the user when a rename will change the meaning of the program
...
Specifically, when a rename of a local will change some code that refers it to refer another local, or some code that refer another local to refer to it.
We do it by introducing a dummy edit with an annotation. I'm not a fond of this approach, but I don't think LSP has a better way.
2025-03-06 21:07:10 +02:00
Chayim Refael Friedman
422213cc9a
Use correct crate for trait env in render_const_scalar()
2025-03-06 21:00:08 +02:00
Chayim Refael Friedman
2fc0dc0f13
Pass the target crate in HirFormatter
...
This is required to format evaluated consts, because we need trait env, and it needs the crate (currently it uses the last crate in topological order, which is wrong, the next commit will fix that).
2025-03-06 21:00:05 +02:00
Chayim Refael Friedman
1cd9e683e8
Normalize projections in evaluated const display and layout calculation
2025-03-06 20:55:50 +02:00
Lukas Wirth
94915fbe48
Fix syntax highlightingg punct filtering ignoring mods
2025-03-05 15:02:44 +01:00
Lukas Wirth
27dc614627
Merge pull request #19274 from Veykril/push-pouwrwwrlrlt
...
Highlight unsafe operations as unsafe, not definitions
2025-03-05 12:57:25 +00:00
Lukas Wirth
9fc0ffe008
Use HIR unsafety information for unsafe syntax highlightng
2025-03-05 13:18:46 +01:00
Thalia Archibald
0811ca0a61
Use size_of from the prelude instead of imported
...
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the
prelude instead of importing or qualifying them.
These functions were added to all preludes in Rust 1.80.
2025-03-05 00:48:44 -08:00
Lukas Wirth
76567ee28d
Merge pull request #19251 from Veykril/push-tkmpqtzxynxk
...
Remove syntax editing from parenthesis computation
2025-03-01 17:46:07 +00:00
Lukas Wirth
570c6adcd3
Remove syntax editing from parenthesis computation
2025-03-01 18:32:04 +01:00
Lukas Wirth
716e9fdb8d
Fix test_keyword_highlighting
test
2025-03-01 18:29:47 +01:00
Lukas Wirth
8f319240b4
Cleanup string handling in syntax highlighting
2025-03-01 17:44:29 +01:00
Lukas Wirth
9200f77068
More precise macro modifiers for syntax highlighting
2025-03-01 17:23:51 +01:00
Lukas Wirth
487d682204
Cleanup highlighting macro-def handling
2025-03-01 16:54:40 +01:00
Lukas Wirth
e92dc3fd80
Have inline_local_variable use precedence calculation for parentheses
2025-02-28 11:03:33 +01:00
Lukas Wirth
2c4ef382d6
Merge pull request #19249 from Veykril/push-noosrywrsuvn
...
Fix prefix adjustment hints unnecessarily introducing parens
2025-02-28 09:33:36 +00:00