about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
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-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-02Improve settings tree title and descriptionsJosh McKinney-624/+899
- All settings are now phrased in the imperative form stating what the setting does rather than talking about what it controls. (E.g.: "Show `Debug` action." instead of "Whether to show `Debug` action" - Categories are now displayed in title case - Categories are now sorted lexicographically - General category is removed (and all the settings are moved to the top level) - Language for a few descriptions is made a bit less ambiguous
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-02awhile -> a while where appropriateнаб-25/+25
2025-07-03fix: Honor `rust-analyzer.cargo.noDeps` option when fetching sysroot metadataShoyu Vanilla-4/+15
2025-07-02Fix AsMut::as_mut nameA4-Tacks-1/+1
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-01Migrate `toggle_macro_delimiter` assist to `SyntaxEditor`Hayashi Mikihiro-12/+14
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-01Migrate `promote_local_to_const` Assist to `SyntaxEditor`Hayashi Mikihiro-9/+13
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
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-07-01Add AsMut Borrow BorrowMut to minicore and famous_defsA4-Tacks-0/+34
2025-06-30Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-06-30test: add test case for func with multiline param listYoung-Flash-2/+19
2025-06-30internal: add `FoldKind::Function`Young-Flash-13/+18
2025-06-30feat: support folding multiline arg list & fn body in one folding rangeYoung-Flash-1/+28
2025-06-29Remove last use of `rustc_pat_analysis::Captures`zachs18-5/+5
It's not necessary anymore due to Rust 2024 lifetime capture rules.
2025-06-29Remove unnecessary parens in closureyukang-1/+1
2025-06-29Merge pull request #20121 from Veykril/push-vkkuutpsuypqLukas Wirth-48/+49
Do not append `--compile-time-deps` to overwritten build script commands
2025-06-29Do not append `--compile-time-deps` to overwritten build script commandsLukas Wirth-48/+49
2025-06-28ci: Fix up release workflowLukas Wirth-5/+9
2025-06-28ci: Cancel workflow only after the main matrix has finishedLukas Wirth-15/+19
2025-06-27Workaround missing none group support in builtin macrosLukas Wirth-40/+22
2025-06-27use placeholder_snippetHayashi Mikihiro-15/+46
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-06-27use name_generatorHayashi Mikihiro-6/+21
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-06-27Merge pull request #20110 from ChayimFriedman2/ambiguous-floatLukas Wirth-1/+50
fix: Fix completion in when typing `integer.|`
2025-06-27Fix completion in when typing `integer.|`Chayim Refael Friedman-1/+50
It should show integer, not floating point methods.
2025-06-26Merge pull request #20100 from ShoyuVanilla/ignore-sized-hierarchyChayim Refael Friedman-65/+142
Backport new sized-hierarchy trait bounds in old ways