Commit graph

283828 commits

Author SHA1 Message Date
Lukas Wirth
a0f47f070e minor: Simplify impl-ty parse validation 2025-03-25 10:14:40 +01:00
Lukas Wirth
69471d6f0f
Merge pull request #19388 from Veykril/push-oqysrnttwywu
feat: parse `unsafe` record fields
2025-03-25 08:12:20 +00:00
Lukas Wirth
d85bffdba4 feat: parse unsafe record fields 2025-03-25 08:55:31 +01:00
Lukas Wirth
c7509abf6f
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
51d3d8cfb1
Merge pull request #19448 from Veykril/push-lkmyospxqrzz
ci: Require miri step
2025-03-25 07:26:49 +00:00
Lukas Wirth
8d076eca01 ci: Require miri step 2025-03-25 08:10:27 +01:00
Lukas Wirth
ef44eaee06
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
f9307c1370 ci: run intern tests via cargo miri 2025-03-25 07:26:43 +01:00
Lukas Wirth
83a97bbdbf
Merge pull request #19359 from davidbarsky/davidbarsky/more-stats-in-analysis-stats
analysis-stats: emit lines of code and item tree counts for workspace; dependencies
2025-03-25 06:08:06 +00:00
David Barsky
0add1a492f analysis-stats: redesign printing of item tree stats 2025-03-24 14:04:07 -07:00
David Barsky
fe192932a9 analysis-stats: expose and print some limited statistics from hir-def 2025-03-24 09:59:51 -07:00
David Barsky
12dc311eb8 analysis-stats: cleanup printing of some workspace stats 2025-03-24 09:59:51 -07:00
David Barsky
44a5b14ca2 analysis-stats: add UsizeWithUnderscore for readability of large numbers 2025-03-24 09:59:51 -07:00
David Barsky
efe3fe76ea analysis-stats: always print source stats 2025-03-24 09:59:51 -07:00
David Barsky
22624ade48 analysis-stats: emit lines of code and item tree counts for workspace; dependencies 2025-03-24 09:59:51 -07:00
Lukas Wirth
9c02e0baa1
Merge pull request #19440 from Veykril/push-lotzuulstwpw
refactor: Replace custom `ThinVec` with `thin-vec` crate
2025-03-24 13:00:50 +00:00
Lukas Wirth
2ae0973516 refactor: Replace custom ThinVec with thin-vec crate 2025-03-24 13:44:13 +01:00
Lukas Wirth
06fdb96a8b
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
19ac6ce67a
Merge pull request #19422 from Veykril/push-xlmxtopzlmxm
chore: Cleanup vscode extension output channels
2025-03-24 06:58:46 +00:00
Laurențiu Nicola
4161aba345
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
7f9116effc
Merge pull request #19430 from Veykril/push-wknpypxuyrsz
chore: Bump dependencies
2025-03-24 06:48:24 +00:00
Lukas Wirth
a41c4dcddd fix: Fix closure return inlayhints using macro ranges 2025-03-24 07:45:31 +01:00
Lukas Wirth
6b9625dc0a chore: Cleanup vscode extension output channels 2025-03-24 07:44:46 +01:00
Laurențiu Nicola
e2b9aab8a3 Add missing syn feature 2025-03-24 08:40:04 +02:00
Laurențiu Nicola
c1f5597210 Drop rustc_hashes dependency 2025-03-24 08:28:52 +02:00
Laurențiu Nicola
6fc2b1db36 Use zip/deflate-flate2 to avoid BSL-1.0 dep 2025-03-23 13:56:55 +02:00
Lukas Wirth
84340b33f9
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
d96df9d438 chore: Bump dependencies 2025-03-23 08:46:10 +01:00
Lukas Wirth
3e2b75dd3e
Merge pull request #19429 from Veykril/push-mnosqlpsysns
chore: Remove unused dependencies
2025-03-23 07:29:29 +00:00
Lukas Wirth
9b1924df89 chore: Remove unused dependencies 2025-03-23 08:08:17 +01:00
Lukas Wirth
2aa893313a
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
d11dcb46d0
Merge pull request #19416 from ShoyuVanilla/issue-15037
fix: Handle multiple `#[repr(..)]` attrs correctly
2025-03-22 17:53:24 +00:00
Lukas Wirth
b0aaecb7aa
Merge pull request #19420 from BenjaminBrienen/doc-fixes
Improve contributing/README.md
2025-03-22 17:36:29 +00:00
BenjaminBrienen
729cd25123 Improve contributing/README.md 2025-03-22 17:54:46 +01:00
Shoyu Vanilla
2c4643e1fa Render layout and other extra informations on hovering Self 2025-03-22 23:53:59 +09:00
Shoyu Vanilla
f386d92c40 fix: Handle multiple #[repr(..)] attrs correctly 2025-03-22 18:57:37 +09:00
Lukas Wirth
eec37fb8fe
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
2e3e75fae9 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
efda66829e 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
eba0d16552
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
9a6f889b03 fix: Properly calculate the layouts of tuple ptrs whose last fields are DST 2025-03-22 12:57:28 +09:00
Lukas Wirth
9134ee9d47
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
993287b349 chore: Remove some unnecessary usage of Semantics 2025-03-21 20:09:03 +01:00
bit-aloo
b1d9f0cc98
add test for &raw const/&raw mut is not syntax-highlighted in all files 2025-03-21 20:57:21 +05:30
bit-aloo
8b5dd67474
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
58aa7642bc
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
d59743101d
add syntax validation test for &impl 'a 2025-03-21 20:30:46 +05:30
bit-aloo
289a87a64f
add syntax validation test for ambiguous + 2025-03-21 20:30:46 +05:30
bit-aloo
d71e7780c2
validate_impl_object_ty: Add diagnostics for and ambiguous . 2025-03-21 20:30:40 +05:30
Lukas Wirth
ccefc5ab1b
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