about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-07-06Always bump in the parser in `err_and_bump()`Chayim Refael Friedman-8/+50
Even when at curly braces, otherwise the parser can get stuck. This has happened in the past in #18625, but it was just worked around instead of handling the root of the problem. Now this happened again in #20171. IMO we can't let `err_and_bump()` not bump, that's too confusing and invites errors. We can (as I did) workaround the worse recovery instead.
2025-07-04Merge pull request #20170 from Veykril/push-vtsmzopsunswLaurențiu Nicola-3/+12
Improve flycheck and build script progress reporting
2025-07-04Improve flycheck and build script progress reportingLukas Wirth-3/+12
2025-07-04Merge pull request #20169 from Veykril/push-quvvsupnqqwvLukas Wirth-11/+49
Skip unnecessary `eq` work in `BodySourceMap`
2025-07-04Skip unnecessary `eq` work in `BodySourceMap`Lukas Wirth-11/+49
2025-07-04Merge pull request #20031 from jnyfah/some-branchLukas Wirth-35/+75
Fix: Resolve HIR display length issues and improve adjustment tooltips
2025-07-04Merge pull request #20168 from Veykril/push-wsozylrmsynsLukas Wirth-21/+11
minor: Handle match arm commas in `make::match_arm`
2025-07-04minor: Handle match arm commas in `make::match_arm`Lukas Wirth-21/+11
Co-authored-by: Giga Bowser <45986823+Giga-Bowser@users.noreply.github.com>
2025-07-04Merge pull request #20148 from ShoyuVanilla/sysroot-no-depsLukas Wirth-4/+15
fix: Honor `rust-analyzer.cargo.noDeps` option when fetching sysroot metadata
2025-07-04Merge pull request #20165 from Hmikihiro/migrate-unmerge_match_armLukas Wirth-22/+20
Migrate `unmerge_match_arm` Assist to use `SyntaxEditor`
2025-07-04Merge pull request #20167 from ChayimFriedman2/enum-derive-defaultLukas Wirth-72/+190
fix: Fix some things with builtin derives
2025-07-03Merge pull request #20144 from regexident/load-workspace-into-dbChayim Refael Friedman-8/+25
Add `fn load_workspace_into_db` variant for `ra_ap_load_cargo`'s `fn load_workspace`
2025-07-03Add `fn load_workspace_into_db` variant for `ra_ap_load_cargo`'s `fn ↵Vincent Esche-8/+25
load_workspace`
2025-07-03Fix some things with builtin derivesChayim Refael Friedman-72/+190
1. Err on unions on derive where it's required. 2. Err on `#[derive(Default)]` on enums without `#[default]` variant. 3. Don't add where bounds `T: Default` when expanding `Default` on enums (structs need that, enums not). Also, because I was annoyed by that, in minicore, add a way to filter on multiple flags in the line-filter (`// :`). This is required for the `Debug` and `Hash` derives, because the derive should be in the prelude but the trait not.
2025-07-04Migrate `unmerge_match_arm` Assist to use `SyntaxEditor`Hayashi Mikihiro-22/+20
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-03Merge pull request #20161 from ShoyuVanilla/closure-captureLukas Wirth-5/+48
fix: Incorrect closure capturing for let exprs
2025-07-03Merge pull request #20120 from Hmikihiro/match_bind_not_typeChayim Refael Friedman-1/+74
fix: resolve item in match bind
2025-07-03fix: resolve item in match bindHayashi Mikihiro-1/+74
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-03fix: Closure capturing for let exprs, againShoyu Vanilla-5/+48
2025-07-03Merge pull request #20160 from Veykril/push-pqvskktpnyluLukas Wirth-49/+71
fix: Improve diagnostic ranges for `macro_calls!`
2025-07-03fix: Improve diagnostic ranges for `macro_calls!`Lukas Wirth-49/+71
We used to point to the entire macro call including its token tree if we couldn't upmap the diagnostic to the input This generally makes things very noisy as the entire macro call will turn red on errors. Instead, we now macro the path and `!` (bang) token as the error source range which is a lot nicer on the eyes.
2025-07-03Merge pull request #20159 from Veykril/push-kyssnlrxlwslLukas Wirth-15/+20
Always couple `--compile-time-deps` with
2025-07-03Always couple `--compile-time-deps` with Lukas Wirth-15/+20
`--all-targets` coupled with `--compile-time-deps` will never actually build binaries and so it won't fail for targets where libtest is missing
2025-07-03Merge pull request #20158 from Veykril/push-rquozrwuskryLukas Wirth-41/+56
fix: Do not warn about proc-macro srv when sysroot is missing
2025-07-03fix: Do not warn about proc-macro srv when sysroot is missingLukas Wirth-41/+56
2025-07-03Merge pull request #20157 from Veykril/push-nxrvpywtvoysLukas Wirth-13/+13
Re-enable fixpoint iteration for variance computation
2025-07-03Re-enable fixpoint iteration for variance computationLukas Wirth-13/+13
2025-07-03Merge pull request #19923 from Veykril/push-rlrsyxsqnxnnLukas Wirth-93/+155
Bump salsa
2025-07-03Bump salsaLukas Wirth-93/+155
2025-07-03Merge pull request #20112 from Veykril/push-ruszuxrqzmvzLukas Wirth-40/+22
Workaround missing none group support in builtin macros
2025-07-03Merge pull request #20156 from Veykril/push-knkzxuxkzoyxLukas Wirth-63/+105
Restructure proc-macro loading erros, differentiate hard error property on kind
2025-07-03Restructure proc-macro loading erros, differentiate hard error property on kindLukas Wirth-63/+105
2025-07-03Merge pull request #20151 from ChayimFriedman2/keyword-hover-linkLukas Wirth-6/+52
fix: Remove keyword prefixes (`macro@` or `macro `) from links in the docs only if the link target is inferred
2025-07-03Remove keyword prefixes (`macro@` or `macro `) from links in the docs only ↵Chayim Refael Friedman-6/+52
if the link target is inferred That is, do it for `[macro foo]`, but not for `[macro foo](macro foo)`.
2025-07-03fix: Honor `rust-analyzer.cargo.noDeps` option when fetching sysroot metadataShoyu Vanilla-4/+15
2025-07-02Merge pull request #20137 from ↵Laurențiu Nicola-42/+85
Hmikihiro/migrate-wrap_unwrap_cfg_attr-assist-to-syntaxeditor Migrate `wrap_unwrap_cfg_attr` Assist to use `SyntaxEditor`
2025-07-02Migrate `wrap_unwrap_cfg_attr` assist to use `SyntaxEditor`Hayashi Mikihiro-42/+85
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-01Merge pull request #20136 from Hmikihiro/migrate-toggle_macro_delimiterLaurențiu Nicola-12/+14
Migrate `toggle_macro_delimiter` Assist to use `SyntaxEditor`
2025-07-01Migrate `toggle_macro_delimiter` assist to `SyntaxEditor`Hayashi Mikihiro-12/+14
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-01Merge pull request #20135 from ↵Laurențiu Nicola-9/+13
Hmikihiro/migrate-promote_local_to_const-assist-tosyntaxeditor Migrate `promote_local_to_const` Assist to `SyntaxEditor`
2025-07-01Migrate `promote_local_to_const` Assist to `SyntaxEditor`Hayashi Mikihiro-9/+13
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-01Merge pull request #20134 from ↵Laurențiu Nicola-10/+11
Hmikihiro/migrate-replace_is_method_with_if_let_method-to-SyntaxFactory Migrate `replace_is_method_with_if_let_method` Assist to use `SyntaxFactory`
2025-07-01remove `if-let` chainsHayashi Mikihiro-6/+7
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-01Migrate `replace_is_method_with_if_let_method` Assist to use `SyntaxFactory`Hayashi Mikihiro-17/+17
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-06-30Merge pull request #20128 from lnicola/sync-from-rustLaurențiu Nicola-14006/+755175
Sync from downstream
2025-06-30Merge from rust-lang/rustLaurențiu Nicola-14005/+755174
2025-06-30Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-06-30Auto merge of #142839 - oli-obk:denullarification, r=RalfJung,celinvalbors-208/+164
Stop backends from needing to support nullary intrinsics And then remove our infrastructure special casing them. Further improvements can now be done to them by avoiding the intermediate ConstValue step, but let's leave that to follow up work r? `@RalfJung`
2025-06-30Try increasing the repetition limitOli Scherer-1/+1
2025-06-30Require either wrapping nullary intrinsincs in const blocks or explicitly ↵Oli Scherer-1/+22
deciding not to