Lukas Wirth
042e6d8efb
Merge pull request #19451 from Veykril/push-tuqmmvkrtpzl
...
refactor: Use MEDIUM durability for crate-graph changes, high for library source files
2025-03-26 06:02:56 +00:00
Lukas Wirth
454e4be40d
refactor: Use MEDIUM durability for crate-graph changes, high for library source files
...
The idea here is that the crate graph may change over time, but library source file contents *never* will (or really never should). Disconnecting the two means that queries that depend on library sources will not need to re-validatewhen the crate graph changes (unless they depend on the crate graph in some capacity).
2025-03-26 06:46:49 +01:00
Lukas Wirth
62e7d9f0fc
Merge pull request #19433 from snprajwal/fix-replace-let-else
...
fix(ide-assists): `let else` to `if let else`
2025-03-25 13:20:12 +00:00
Lukas Wirth
389323ca09
minor: Simplify impl-ty parse validation
2025-03-25 10:14:40 +01:00
Lukas Wirth
749fde9017
Merge pull request #19388 from Veykril/push-oqysrnttwywu
...
feat: parse `unsafe` record fields
2025-03-25 08:12:20 +00:00
Lukas Wirth
452e2ca031
feat: parse unsafe
record fields
2025-03-25 08:55:31 +01:00
Lukas Wirth
ed7e25a0c0
Merge pull request #19347 from Shourya742/2025-03-13-add-diagnostic-for-dnagling-impl-with-lifetime
...
Add diagnostic for missing ambiguity error for impl trait
2025-03-25 07:49:45 +00:00
Lukas Wirth
7a1e9c4b0c
ci: Require miri step
2025-03-25 08:10:27 +01:00
Lukas Wirth
d3aeddfb77
Merge pull request #19446 from Veykril/push-olslsvoxlxwk
...
ci: run `intern` tests via `cargo miri`
2025-03-25 06:42:40 +00:00
Lukas Wirth
c96421ecf4
ci: run intern
tests via cargo miri
2025-03-25 07:26:43 +01:00
David Barsky
19b62b2778
analysis-stats: redesign printing of item tree stats
2025-03-24 14:04:07 -07:00
David Barsky
7d050feb5f
analysis-stats: expose and print some limited statistics from hir-def
2025-03-24 09:59:51 -07:00
David Barsky
288d78353f
analysis-stats: cleanup printing of some workspace stats
2025-03-24 09:59:51 -07:00
David Barsky
5ad27fdafb
analysis-stats: add UsizeWithUnderscore
for readability of large numbers
2025-03-24 09:59:51 -07:00
David Barsky
756c42409c
analysis-stats: always print source stats
2025-03-24 09:59:51 -07:00
David Barsky
6af729166e
analysis-stats: emit lines of code and item tree counts for workspace; dependencies
2025-03-24 09:59:51 -07:00
Lukas Wirth
dcd742301e
refactor: Replace custom ThinVec
with thin-vec
crate
2025-03-24 13:44:13 +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
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
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
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
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
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
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
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
e4aa09fd7f
minor: Trigger LRU eviction after cache priming finishes
2025-03-21 10:13:43 +01:00