about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2025-07-27Merge pull request #20305 from Hmikihiro/Migrate_part_of_utilsShoyu Vanilla (Flint)-3/+5
Migrate part of utils.rs to use SyntaxEditor
2025-07-27Migrate `convert_tuple_struct_to_named_struct' assist to use `SyntaxEditor'Hayashi Mikihiro-35/+68
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-27migrate `fn edit_struct_def` in `convert_tuple_struct_to_named_struct` to ↵Hayashi Mikihiro-30/+24
SyntaxEditor Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-27remove ted from convert_tuple_struct_to_named_structHayashi Mikihiro-5/+7
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-27Migrate `inline_type_alias` assist to use `SyntaxEditor`Hmikihiro-29/+34
2025-07-27refactor: conpare text of name_ref instead of syntax name_refHmikihiro-1/+4
2025-07-27Unherit server extra env for runnables extra envLukas Wirth-36/+33
2025-07-27fix: Fix runnables extra env not substituting env varsLukas Wirth-50/+53
2025-07-27Merge pull request #20290 from ShoyuVanilla/tmp-lockfilesLukas Wirth-6/+54
Use `TempDir` for copied lockfiles
2025-07-27Merge pull request #20302 from Young-Flash/fix_20240Laurențiu Nicola-4/+23
fix fold doc comment for multiline param list fn
2025-07-27minor: fix typoYoung-Flash-1/+1
2025-07-26Merge pull request #20307 from ↵Laurențiu Nicola-8/+11
Hmikihiro/migrate_extract_expression_from_format_string Migrate `extract_expressions_from_format_string` assist to use `SyntaxEditor`
2025-07-26Migrate `extract_expressions_from_format_string` assist to use `SyntaxEditor`Hayashi Mikihiro-8/+11
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26Migrate Convert_to_guarded_return to use SyntaxEditorHayashi Mikihiro-7/+6
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26Migrate part of utils.rs to use SyntaxEditorHayashi Mikihiro-3/+5
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26Migrate PathTransform to SyntaxEditorHayashi Mikihiro-86/+168
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26add Debug on AstSubst PathTransform.rsHayashi Mikihiro-1/+2
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26test: add test case for fold doc comment for multiline param list fnYoung-Flash-0/+17
2025-07-26fix fold doc comment for multiline param list fnYoung-Flash-4/+6
2025-07-26Modify around add_trait_assoc_items_to_impl to migrate add_missing_impl_membersHayashi Mikihiro-110/+229
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-25migrate_replace_derive_with_manual_implHmikihiro-60/+45
2025-07-25split ted from gen_trait_fn_bodyHmikihiro-88/+65
2025-07-25Merge pull request #19938 from A4-Tacks/gen-impl-traitShoyu Vanilla (Flint)-3/+346
Add ide-assist: generate_impl_trait for generate_impl
2025-07-25Fix gen panics doc template for debug_assertA4-Tacks-6/+62
And add assert_eq, assert_ne, assert_matches support Input: ```rust pub fn $0foo(x: bool) { debug_assert!(x); } ``` Old: ```rust /// . /// /// # Panics /// /// Panics if . pub fn foo(x: bool) { debug_assert!(x); } ``` This PR fixes: ```rust /// . pub fn foo(x: bool) { debug_assert!(x); } ```
2025-07-24Remove dead code and extend test coverage and diagnostics around itOli Scherer-13/+3
We lost the following comment during refactorings: The current code for niche-filling relies on variant indices instead of actual discriminants, so enums with explicit discriminants (RFC 2363) would misbehave.
2025-07-24Fix generate_trait_from_impl whitespace after visA4-Tacks-3/+9
Input: ```rust struct Foo; impl F$0oo { pub fn a_func() -> Option<()> { Some(()) } } ``` Old: ```rust struct Foo; trait NewTrait { fn a_func() -> Option<()>; } impl NewTrait for Foo { fn a_func() -> Option<()> { Some(()) } } ``` This PR fixed: ```rust struct Foo; trait NewTrait { fn a_func() -> Option<()>; } impl NewTrait for Foo { fn a_func() -> Option<()> { Some(()) } } ```
2025-07-23Merge pull request #20291 from ChayimFriedman2/fix-cargo-lockChayim Refael Friedman-0/+1
minor: Fix Cargo.lock
2025-07-23Use `TempDir` for copied lockfilesShoyu Vanilla-6/+55
2025-07-23Fix Cargo.lockChayim Refael Friedman-0/+1
The dependency of `xtask` on `time` was mistakenly removed.
2025-07-23Merge pull request #20285 from A4-Tacks/fix-rename-selfChayim Refael Friedman-31/+44
Change rename self to parameter use `Self` type
2025-07-23Remove rename_self_outside_of_methodsA4-Tacks-8/+2
2025-07-23Merge pull request #20289 from ChayimFriedman2/expr-store-diags-macrosLukas Wirth-44/+9
internal: Remove `ExpressionStoreDiagnostics::MacroError`, instead recreate it from the `MacroCallId`
2025-07-23Remove `ExpressionStoreDiagnostics::MacroError`, instead recreate it from ↵Chayim Refael Friedman-44/+9
the `MacroCallId` This simplifies the code and also makes us report parse error in macros too.
2025-07-23Change rename self to parameter use `Self` typeA4-Tacks-29/+48
And add `&self` lifetime support Example === Rename to `this` ```rust struct Foo<T>(T); impl Foo<i32> { fn foo(&'static self$0) {} } ``` Old: ```rust struct Foo<T>(T); impl Foo<i32> { fn foo(this: &Foo) {} } ``` Fixes: ```rust struct Foo<T>(T); impl Foo<i32> { fn foo(this: &'static Self) {} } ```
2025-07-23Merge pull request #20281 from ChayimFriedman2/parse-hrtb-constShoyu Vanilla (Flint)-352/+463
fix: Parse `for<'a> [const]`
2025-07-22Merge pull request #20280 from Kobzol/josh-syncLaurențiu Nicola-229/+42
Switch to using josh-sync
2025-07-22Add CI workflow for periodically performing josh pullsJakub Beránek-0/+20
2025-07-22Apply suggestions from code reviewJakub Beránek-4/+5
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2025-07-22Document synces using `josh-sync`Jakub Beránek-12/+41
2025-07-22Remove pull/push functionality from `xtask`Jakub Beránek-217/+0
2025-07-22Parse `for<'a> [const]`Chayim Refael Friedman-352/+463
And also refactor parsing of HRTB.
2025-07-22Add josh-sync.tomlLaurențiu Nicola-0/+2
2025-07-22Merge pull request #20277 from ↵Shoyu Vanilla (Flint)-3/+4
rust-lang/dependabot/npm_and_yarn/editors/code/form-data-4.0.4 Bump form-data from 4.0.2 to 4.0.4 in /editors/code
2025-07-22Support filtering in analysis-stats MIR loweringLaurențiu Nicola-62/+66
2025-07-22Bump form-data from 4.0.2 to 4.0.4 in /editors/codedependabot[bot]-3/+4
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.2 to 4.0.4. - [Release notes](https://github.com/form-data/form-data/releases) - [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md) - [Commits](https://github.com/form-data/form-data/compare/v4.0.2...v4.0.4) --- updated-dependencies: - dependency-name: form-data dependency-version: 4.0.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
2025-07-22Merge pull request #20269 from Hmikihiro/migrate_indent_mappingShoyu Vanilla (Flint)-35/+74
Migrate AstNodeEdit::Indent to SyntaxEditor
2025-07-22Merge pull request #20270 from Hmikihiro/migrate_generate_newShoyu Vanilla (Flint)-58/+97
Migrate `generate new` assist to use `SyntaxEditor`
2025-07-21Merge pull request #20273 from ShoyuVanilla/match-adjustsChayim Refael Friedman-48/+94
fix: Apply adjusts to pats and exprs when doing pat analysis
2025-07-22fix: Apply adjusts to pats and exprs when doing pat analysisShoyu Vanilla-48/+94
2025-07-21hir-def: Don't apply x86_64-specific asserts on x32John Paul Adrian Glaubitz-2/+2
This fixes the rustc build on x32 for which struct sizes differ.