about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide-assists
AgeCommit message (Collapse)AuthorLines
2025-07-21Merge pull request #20256 from A4-Tacks/gen-mut-trait-derefShoyu Vanilla (Flint)-0/+37
Add Deref -> DerefMut for generate_mut_trait_impl
2025-07-20Merge pull request #20255 from A4-Tacks/deref-intranstiveLaurențiu Nicola-2/+25
Fix ide-assist: generate Deref transitive
2025-07-19Add Deref -> DerefMut for generate_mut_trait_implA4-Tacks-0/+37
2025-07-19Fix ide-assist: Deref transtiveA4-Tacks-2/+25
2025-07-18Merge pull request #19783 from A4-Tacks/generate-single-field-fromShoyu Vanilla (Flint)-6/+1043
Add ide-assist, generate single field struct From
2025-07-17Add tailexpr & -> &mut for generate_mut_trait_implA4-Tacks-5/+20
2025-07-16Use hir::Trait in parameterA4-Tacks-37/+24
2025-07-16Remove redundant type parametersA4-Tacks-4/+4
2025-07-16Add AsRef and Borrow for generate_mut_trait_implA4-Tacks-18/+96
- AsRef -> AsMut - Borrow -> BorrowMut Example ==================== ```rust //- minicore: as_ref struct Foo(i32); impl<T> core::convert::AsRef$0<i32> for Foo { fn as_ref(&self) -> &i32 { &self.0 } } ``` -> ```rust struct Foo(i32); $0impl<T> core::convert::AsMut<i32> for Foo { fn as_mut(&mut self) -> &mut i32 { &self.0 } } impl<T> core::convert::AsRef<i32> for Foo { fn as_ref(&self) -> &i32 { &self.0 } } ```
2025-07-13remove `remove_default`Hayashi Mikihiro-26/+19
2025-07-11Merge pull request #20224 from Hmikihiro/migrate_remove_dbgShoyu Vanilla (Flint)-43/+44
Migrate `remove_dbg` assist to use `SyntaxEditor`
2025-07-11Migrate `remove_dbg` assist to use `SyntaxEditor`Hayashi Mikihiro-43/+44
2025-07-10Migrate `generate_impl` assist to use `SyntaxEditor`Hayashi Mikihiro-9/+16
2025-07-10Revert "remove `if-let` chains"Laurențiu Nicola-7/+6
This reverts commit fcc81a38b3ed55447735f71e8d374fcb36c22f24.
2025-07-10Migrate `convert_match_to_let_else` assist to use `SyntaxEditor`Hayashi Mikihiro-13/+15
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-10migrate `convert_named_struct_to_tuple_struct` assist to use 'SyntaxEditor'Hayashi Mikihiro-6/+9
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-09Merge pull request #20109 from Hmikihiro/generate_new_tuple_fieldShoyu Vanilla (Flint)-24/+385
feat: Generate `new` for tuple struct
2025-07-09Migrate `pull_assignment_up` assist to `SyntaxEditor`Hayashi Mikihiro-26/+45
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-04minor: Handle match arm commas in `make::match_arm`Lukas Wirth-17/+6
Co-authored-by: Giga Bowser <45986823+Giga-Bowser@users.noreply.github.com>
2025-07-04Migrate `unmerge_match_arm` Assist to use `SyntaxEditor`Hayashi Mikihiro-22/+20
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-03Bump salsaLukas Wirth-7/+8
2025-07-03Merge pull request #20156 from Veykril/push-knkzxuxkzoyxLukas Wirth-10/+12
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-10/+12
2025-07-02Migrate `wrap_unwrap_cfg_attr` assist to use `SyntaxEditor`Hayashi Mikihiro-42/+44
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-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-27generate new for tuple fieldHayashi Mikihiro-22/+337
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-06-25Adjust minicore for Sized Hierarchy changesLukas Wirth-2/+6
2025-06-24Merge pull request #20061 from ChayimFriedman2/wrap-ret-tyLukas Wirth-32/+131
fix: In "Wrap return type" assist, don't wrap exit points if they already have the right type
2025-06-24Merge pull request #20062 from ChayimFriedman2/doctestsLukas Wirth-0/+1
minor: Don't run doctests
2025-06-24fix: Use `ROOT` hygiene for `args` inside new `format_args!` expansionShoyu Vanilla-11/+5
2025-06-23Don't run doctestsChayim Refael Friedman-0/+1
2025-06-23In "Wrap return type" assist, don't wrap exit points if they already have ↵Chayim Refael Friedman-32/+131
the right type
2025-06-22Minic rustc's new `format_args!` expansionShoyu Vanilla-3/+9
2025-06-21fix: Correct grammar in remove all unused imports assistZakaria Elkatani-1/+1
2025-06-17chore: Start infesting ide crates with 'db lifetimeLukas Wirth-116/+134
2025-06-06In "Fill match arms", allow users to prefer `Self` to the enum name when ↵Chayim Refael Friedman-29/+200
possible But default to not to. I chose to have a more generic config name because maybe other assists could also use the same approach.
2025-06-05feat: ide-assist, generate single field struct FromA4-Tacks-6/+1043
2025-06-03Merge pull request #19869 from MatrixFrog/publicize_fieldLukas Wirth-145/+2
Add a quickfix for accessing a private field of a struct
2025-06-03Merge pull request #19901 from BazookaMusic/masterLukas Wirth-12/+192
Enable Assist edit for tuple<->named struct for the struct and visiblity keywords
2025-06-02Add a quickfix for accessing a private field of a structTyler Breisacher-145/+2
2025-06-02simplify expression that checks the offsetBazookaMusic-36/+30
2025-06-02Enhance renaming to include identifiers that are generated from the original ↵Lukas Wirth-1/+2
symbol Co-authored-by: Jake Goulding <jake.goulding@integer32.com>
2025-06-01clippy and more formattingBazookaMusic-9/+4
2025-06-01rename function so it makes more senseBazookaMusic-5/+5
2025-06-01Formatting issues resolvedBazookaMusic-13/+18