33985 Commits

Author SHA1 Message Date
Laurențiu Nicola
fcbba4ec72
Merge pull request #19436 from lnicola/rm-rustc-hashes
minor: drop `rustc_hashes` dependency, add `syn` feature
2025-03-24 06:56:05 +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
78f4146dc7 chore: Cleanup vscode extension output channels 2025-03-24 07:44:46 +01:00
Laurențiu Nicola
7e360691a2 Add missing syn feature 2025-03-24 08:40:04 +02:00
Laurențiu Nicola
7af69a1952 Drop rustc_hashes dependency 2025-03-24 08:28:52 +02:00
Prajwal S N
4fdb7dcac0
fix(ide-assists): let else to if let else
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-24 01:08:14 +05:30
Laurențiu Nicola
1259cc52c6 Use zip/deflate-flate2 to avoid BSL-1.0 dep 2025-03-23 13:56:55 +02: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-24
2025-03-23 07:49:19 +00:00
Lukas Wirth
500ea05aef chore: Bump dependencies 2025-03-23 08:46:10 +01:00
Lukas Wirth
c85fcd29a3
Merge pull request #19429 from Veykril/push-mnosqlpsysns
chore: Remove unused dependencies
2025-03-23 07:29:29 +00:00
Lukas Wirth
d4122434dd chore: Remove unused dependencies 2025-03-23 08:08:17 +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
Lukas Wirth
2e5e5113df
Merge pull request #19416 from ShoyuVanilla/issue-15037
fix: Handle multiple `#[repr(..)]` attrs correctly
2025-03-22 17:53:24 +00:00
Lukas Wirth
9a3e037e23
Merge pull request #19420 from BenjaminBrienen/doc-fixes
Improve contributing/README.md
2025-03-22 17:36:29 +00:00
BenjaminBrienen
98f2cfd3fa Improve contributing/README.md 2025-03-22 17:54:46 +01:00
Shoyu Vanilla
ecc1ff8f33 Render layout and other extra informations on hovering Self 2025-03-22 23:53:59 +09:00
Shoyu Vanilla
602b4f37b9 fix: Handle multiple #[repr(..)] attrs correctly 2025-03-22 18:57:37 +09:00
Lukas Wirth
8d7cda373b
Merge pull request #19362 from nemethf/fix-19322
Speed up resolving a "Generate delegate method" assist
2025-03-22 09:37:59 +00: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
Felicián Németh
7aa70a86d1 Speed up resolving "Generate delegate method" assist (part 1)
Fix #19322

Sometimes there are 185 "Generate delegate" assists with the same
assist_id and asssist_kind.  This commit introduces and additional
differentiator: assist_subtype.  Therefore, when the LSP client sends
an assist resolve request, rust-analyzer only need to compute edits
for a single assist instead of 185.
2025-03-22 09:41:34 +01:00
Lukas Wirth
dab1329f35
Merge pull request #19413 from ShoyuVanilla/issue-19399
fix: Properly calculate the layouts of tuple ptrs whose last fields are DST
2025-03-22 08:18:09 +00:00
Shoyu Vanilla
b07a76d6af fix: Properly calculate the layouts of tuple ptrs whose last fields are DST 2025-03-22 12:57:28 +09:00
Lukas Wirth
32fa60f3a6
Merge pull request #19412 from Veykril/push-krktmvxmlxmt
chore: Remove some unnecessary usage of `Semantics`
2025-03-21 19:25:41 +00:00
Lukas Wirth
3086e5fe90 chore: Remove some unnecessary usage of Semantics 2025-03-21 20:09:03 +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
4339a79825
Merge pull request #19409 from Veykril/push-osqtywsvmwxv
minor: Don't query the database in workspace switching
2025-03-21 15:26:25 +00:00
bit-aloo
df56707f35
add syntax validation test for &impl 'a 2025-03-21 20:30:46 +05:30
bit-aloo
4389c43313
add syntax validation test for ambiguous + 2025-03-21 20:30:46 +05:30
bit-aloo
16d7b83d6b
validate_impl_object_ty: Add diagnostics for and ambiguous . 2025-03-21 20:30:40 +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
d305b0b8d0
Merge pull request #19397 from gvozdvmozgu/postfix-const-block
add postfix completion for const block
2025-03-21 14:12:56 +00:00
Lukas Wirth
9c01af0a86
Merge pull request #19408 from Veykril/push-wtnxzulsovxy
refactor: Reduce codegen burden for generated syntax
2025-03-21 11:32:43 +00:00
Lukas Wirth
3d9ac497aa fix: Fix incorrect expansion of builtin PartialOrd derive 2025-03-21 12:14:39 +01:00
Lukas Wirth
d31301cbe7 refactor: Reduce codegen burden for SyntaxNode and SyntaxToken 2025-03-21 12:14:39 +01:00
Lukas Wirth
d6dc1bf05e refactor: Reduce codegen burden for SyntaxKind 2025-03-21 12:14:39 +01:00
Lukas Wirth
7581e19c43 minor: Don't query the database in workspace switching 2025-03-21 11:42:39 +01:00
Lukas Wirth
0f370b0203
Merge pull request #19407 from Veykril/push-zkvxrrktwyxp
minor: Trigger LRU eviction after cache priming finishes
2025-03-21 09:29:42 +00:00
Lukas Wirth
e4aa09fd7f minor: Trigger LRU eviction after cache priming finishes 2025-03-21 10:13:43 +01:00
Lukas Wirth
8316ffeab1
Merge pull request #19405 from ChayimFriedman2/no-expand
minor: Remove unnecessary expansions
2025-03-21 05:32:10 +00:00
Chayim Refael Friedman
ced6ea5cd0 Remove unnecessary expansions
In the body source map, we record each macro call with the `ExprOrPatId` it resolved to, so to lookup the `ExprId` of some node, we don't need to expand it!
2025-03-20 21:49:18 +02:00
gvozdvmozgu
7393d851a6 add postfix completion for const block 2025-03-19 16:15:32 -07:00
Lukas Wirth
15d87419f1
Merge pull request #19391 from Veykril/push-rnrskpqoltpl
chore: Clean up proc-macro-srv CI job
2025-03-18 11:22:41 +00:00
Lukas Wirth
56c9f331ee chore: Clean up proc-macro-srv CI job 2025-03-18 12:06:25 +01:00
Lukas Wirth
5742bdf587
Merge pull request #19390 from Veykril/push-nnuxnoqkxlyu
refactor: Do not use `Expander` in assoc item lowering
2025-03-18 10:27:53 +00:00
Lukas Wirth
c365bd96d3 refactor: Do not use Expander in assoc item lowering
`Expander` is a macro expansion solution for body lowering, there is no need to use it here
2025-03-18 11:11:36 +01:00
Chayim Refael Friedman
31e412c290
Merge pull request #19320 from alibektas/19254
Observe unsafeness when generating manual impls of former derives
2025-03-17 22:05:07 +00:00
Ali Bektas
1afbcc06f3 Test unsafeness is respected when manual impling derives 2025-03-17 22:37:21 +01:00
Ali Bektas
824df43d2d Observe unsafeness only for replace_derive_with_manual_impl 2025-03-17 21:57:21 +01:00