33913 Commits

Author SHA1 Message Date
BenjaminBrienen
98f2cfd3fa Improve contributing/README.md 2025-03-22 17:54:46 +01: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
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
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
Ali Bektas
477b987179 Observe unsafeness when generating manual impls of former derives 2025-03-17 21:55:27 +01:00
HKalbasi
0c1b4838ce
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
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
ef60b78479
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
fa89f29303 analysis-stats: run Salsa's LRU at the end of analysis 2025-03-17 10:45:03 -04:00
Lukas Wirth
b03af79bc0
Merge pull request #19379 from Veykril/push-nwmqsvtqpnko
chore: Bump `Edition::CURRENT` to 2024
2025-03-17 14:39:10 +00:00
Lukas Wirth
facaf8b870
Merge pull request #19384 from Veykril/push-yppplzzpoymr
fix: Fix stale `Building CrateGraph` report
2025-03-17 11:35:31 +00:00
Lukas Wirth
a505420751 chore: Bump Edition::CURRENT to 2024 2025-03-17 12:29:19 +01:00
Lukas Wirth
c159ac2f4b fix: Fix stale Building CrateGraph report 2025-03-17 12:19:33 +01:00
Lukas Wirth
1c72e5403b
Merge pull request #19315 from snprajwal/ci-xtask
fix(codegen): do not generate docs with `--check`
2025-03-17 09:24:46 +00:00
Lukas Wirth
64d39c1abc
Merge pull request #19329 from Shourya742/2025-03-10-add-proc-macro-api-doc
doc: add doc to proc-macro-api
2025-03-17 09:17:35 +00:00
Prajwal S N
1f366e7efe
fix(codegen): do not generate docs with --check
Running `cargo codegen --check` should not generate any mdbook files,
since they are ignored in the repo and used only while releasing a new
copy of the documentation.

Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-17 14:40:24 +05:30
Laurențiu Nicola
b0632f749e
Merge pull request #19374 from lnicola/nextest
minor: Use cargo nextest on CI
2025-03-17
2025-03-16 17:38:08 +00:00
Lukas Wirth
23e8d13531
Merge pull request #19355 from Veykril/push-nzknrnouutnp
internal: Render root syntax contexts more clearly
2025-03-16 17:30:57 +00:00
Lukas Wirth
a06aadb9f0 internal: Render root syntax contexts more clearly 2025-03-16 16:26:07 +01:00
Lukas Wirth
c28b80c321 internal: Symbol is not PartialOrd 2025-03-16 16:06:06 +01:00
Lukas Wirth
f443ba0a4c
Merge pull request #19376 from Veykril/push-ultzutkwqupt
minor: Remove unnecessary allocations in `function::params_display`
2025-03-16 14:35:16 +00:00
Lukas Wirth
6a637879ac minor: Remove unnecessary allocations in function::params_display 2025-03-16 15:19:25 +01:00
Lukas Wirth
8b5816b4f5
Merge pull request #19363 from euclio/varargs-detail
display varargs in completion detail
2025-03-16 13:43:11 +00:00
Lukas Wirth
6675b585d3
Merge pull request #19344 from BenjaminBrienen/add-icons
Add icons to views
2025-03-16 13:42:30 +00:00
Lukas Wirth
918740358b
Merge pull request #19354 from ChayimFriedman2/rtn-prep
Preparation to Return Type Notation (RTN)
2025-03-16 13:21:23 +00:00