Commit graph

283800 commits

Author SHA1 Message Date
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
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
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
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
Lukas Wirth
ceb8425a82
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
3e065abd53
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
ed4a749f52 fix: Fix incorrect expansion of builtin PartialOrd derive 2025-03-21 12:14:39 +01:00
Lukas Wirth
c9355c69bd refactor: Reduce codegen burden for SyntaxNode and SyntaxToken 2025-03-21 12:14:39 +01:00
Lukas Wirth
3f7fc4dff2 refactor: Reduce codegen burden for SyntaxKind 2025-03-21 12:14:39 +01:00
Lukas Wirth
eddcda3030 minor: Don't query the database in workspace switching 2025-03-21 11:42:39 +01:00
Lukas Wirth
cc8aa3a29d
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
93d62b543d minor: Trigger LRU eviction after cache priming finishes 2025-03-21 10:13:43 +01:00
Lukas Wirth
7e1610e723
Merge pull request #19405 from ChayimFriedman2/no-expand
minor: Remove unnecessary expansions
2025-03-21 05:32:10 +00:00
Chayim Refael Friedman
2b4d783dd4 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
890f647641 add postfix completion for const block 2025-03-19 16:15:32 -07:00
Lukas Wirth
0e160b70f2
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
e41cd5f148 chore: Clean up proc-macro-srv CI job 2025-03-18 12:06:25 +01:00
Lukas Wirth
ec6894ecc1
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
1d6ce04421 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
1f275b6609
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
d88a6159ea Test unsafeness is respected when manual impling derives 2025-03-17 22:37:21 +01:00
Ali Bektas
1919a66f93 Observe unsafeness only for replace_derive_with_manual_impl 2025-03-17 21:57:21 +01:00
Ali Bektas
741849804f Observe unsafeness when generating manual impls of former derives 2025-03-17 21:55:27 +01:00
HKalbasi
835117c64e
Merge pull request #19005 from duncanawoods/18955---fix-running-tests-for-packages-with-multiple-targets
fix testing packages with multiple targets
2025-03-17 19:54:49 +00:00
jnyfah
caff951a1c No edit if no body 2025-03-17 18:03:21 +01:00
jnyfah
78a6572616 some changes 2025-03-17 16:48:46 +01:00
Lukas Wirth
5cc6d29e67
Merge pull request #19378 from davidbarsky/davidbarsky/run-lru-at-end-of-analysis-stats
analysis-stats: run Salsa's LRU at the end of analysis
2025-03-17 14:59:46 +00:00
David Barsky
b97596c81f analysis-stats: run Salsa's LRU at the end of analysis 2025-03-17 10:45:03 -04:00
Lukas Wirth
5b91762451
Merge pull request #19379 from Veykril/push-nwmqsvtqpnko
chore: Bump `Edition::CURRENT` to 2024
2025-03-17 14:39:10 +00:00
Lukas Wirth
6c70045a66
Merge pull request #19384 from Veykril/push-yppplzzpoymr
fix: Fix stale `Building CrateGraph` report
2025-03-17 11:35:31 +00:00
Lukas Wirth
65f73976bb chore: Bump Edition::CURRENT to 2024 2025-03-17 12:29:19 +01:00
Lukas Wirth
ce23f73750 fix: Fix stale Building CrateGraph report 2025-03-17 12:19:33 +01:00