about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/syntax
AgeCommit message (Collapse)AuthorLines
2025-09-30Impl `std::error::Error` for `SyntaxError`Chayim Refael Friedman-0/+2
2025-09-09Merge pull request #20624 from A4-Tacks/fix-syn-lifetime-boundsChayim Refael Friedman-7/+6
Fix LifetimeParam::lifetime_bounds invalid implement
2025-09-09Fix LifetimeParam::lifetime_bounds invalid implementA4-Tacks-7/+6
Lifetime node example: ``` LIFETIME_PARAM@15..21 LIFETIME@15..17 LIFETIME_IDENT@15..17 "'a" COLON@17..18 ":" WHITESPACE@18..19 " " TYPE_BOUND_LIST@19..21 TYPE_BOUND@19..21 LIFETIME@19..21 LIFETIME_IDENT@19..21 "'b" ```
2025-09-07Improve make::struct_ field_list whitespaceA4-Tacks-2/+5
Example --- **Before this PR**: ```rust struct Variant{ field: u32 } ``` **After this PR**: ```rust struct Variant { field: u32 } ```
2025-08-13Merge Trait and TraitAlias handlingDeadbeef-177/+12
2025-08-07In extract_module.rs, generate ast::Module instead of StringHmikihiro-0/+17
2025-08-04remvoe add_attr edit_in_place.rs because it use ted.Hmikihiro-35/+53
2025-08-03Remove unused functions from edit_in_placeHmikihiro-161/+2
2025-08-03Migrate `generate_delegate_methods` assist to use `SyntaxEditor`Hmikihiro-3/+1
2025-07-31Merge pull request #20345 from Hmikihiro/Migrate_add_trait_assoc_items_to_implShoyu Vanilla (Flint)-0/+36
add `SyntaxEditor::delete_all` to migrate utils.rs `add_trait_assoc_items_to_impl`
2025-07-31`cargo clippy --fix`Lukas Wirth-115/+116
2025-07-30add `SyntaxEditor::delete_all` to migrate utils.rs ↵Hmikihiro-0/+36
`add_trait_assoc_items_to_impl`
2025-07-29add `SyntaxFactory::record_expr` to hide clone_for_updateHmikihiro-0/+18
2025-07-26Modify around add_trait_assoc_items_to_impl to migrate add_missing_impl_membersHayashi Mikihiro-1/+37
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-23Merge pull request #20281 from ChayimFriedman2/parse-hrtb-constShoyu Vanilla (Flint)-72/+67
fix: Parse `for<'a> [const]`
2025-07-22Parse `for<'a> [const]`Chayim Refael Friedman-72/+67
And also refactor parsing of HRTB.
2025-07-22Merge pull request #20269 from Hmikihiro/migrate_indent_mappingShoyu Vanilla (Flint)-15/+54
Migrate AstNodeEdit::Indent to SyntaxEditor
2025-07-21migrate generate newHayashi Mikihiro-20/+29
2025-07-21Migrate AstNodeEditHayashi Mikihiro-15/+54
2025-07-13remove `remove_default`Hayashi Mikihiro-36/+0
2025-07-10Merge pull request #20210 from ChayimFriedman2/naked-asm-safeShoyu Vanilla (Flint)-3/+20
fix: Inline asm fixes
2025-07-09Make `global_asm!()` workChayim Refael Friedman-2/+10
Because apparently, we were not accepting inline asm in item position, completely breaking it.
2025-07-09Differentiate between `asm!()`, `global_asm!()` and `naked_asm!()`, and make ↵Chayim Refael Friedman-1/+10
only `asm!()` unsafe
2025-07-09Migrate `pull_assignment_up` assist to `SyntaxEditor`Hayashi Mikihiro-1/+14
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-04minor: Handle match arm commas in `make::match_arm`Lukas Wirth-4/+5
Co-authored-by: Giga Bowser <45986823+Giga-Bowser@users.noreply.github.com>
2025-07-02Migrate `wrap_unwrap_cfg_attr` assist to use `SyntaxEditor`Hayashi Mikihiro-0/+41
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-06-26Parse new const trait syntaxLukas Wirth-1/+5
2025-06-24Merge pull request #20012 from lnicola/bump-literal-escaperLukas Wirth-69/+53
Update to literal-escaper 0.0.4
2025-06-23Don't run doctestsChayim Refael Friedman-0/+1
2025-06-17Merge pull request #19939 from ChayimFriedman2/fill-arms-selfLukas Wirth-0/+7
feat: In "Fill match arms", allow users to prefer `Self` to the enum name when possible
2025-06-16update to literal-escaper 0.0.4 for better API without `unreachable` and ↵Marijn Schouten-69/+53
faster string parsing
2025-06-13`cargo upgrade`Lukas Wirth-1/+1
2025-06-12Use stable AST IDsChayim Refael Friedman-0/+10
Instead of simple numbering, we hash important bits, like the name of the item. This will allow for much better incrementality, e.g. when you add an item. Currently, this invalidates the IDs of all following items, which invalidates pretty much everything.
2025-06-06In "Fill match arms", allow users to prefer `Self` to the enum name when ↵Chayim Refael Friedman-0/+7
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-04Give path segment type anchors their own grammar ruleLukas Wirth-24/+72
2025-05-30internal: Restructure some semantics APIs for virtual macro filesLukas Wirth-0/+7
2025-05-29fix: Fix import insertion not being fully cfg awareLukas Wirth-0/+7
2025-05-28feat: Desugar assist for `let pat = expr?;` -> `let else`Lukas Wirth-0/+12
2025-05-20Merge from rust-lang/rustLaurențiu Nicola-0/+5
2025-05-06Rollup merge of #140035 - fee1-dead-contrib:push-oszwkkvmpkks, ↵Stuart Cook-0/+5
r=jieyouxu,wesleywiser Implement RFC 3503: frontmatters Tracking issue: #136889 Supercedes #137193. This implements [RFC 3503](https://github.com/rust-lang/rfcs/blob/master/text/3503-frontmatter.md). This might break rust-analyzer. Will look into how to fix that. Suggestions welcome for how to improve diagnostics.
2025-05-05Implement RFC 3503: frontmattersDeadbeef-0/+5
Supercedes #137193
2025-05-05fix: Fix `move_bounds` assists not working for lifetimesLukas Wirth-1/+63
2025-05-02refactor: Simplify macro call id constructionLukas Wirth-1/+1
2025-05-01remove a couple of clonesMatthias Krüger-1/+1
2025-04-28Merge pull request #19542 from snprajwal/let-else-to-matchLukas Wirth-9/+133
refactor: migrate `let_else_to_match` to editor
2025-04-28fix: migrate `unmerge_use` to syntax editorPrajwal S N-1/+64
Also ensures that attributes on the use item are applied to the new use item when unmerging. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-28refactor: migrate `let_else_to_match` to editorPrajwal S N-9/+133
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-28Merge pull request #19704 from Veykril/push-wrvznvvpvtvpLukas Wirth-0/+3
Add expression fill mode variant for filling with underscore expressions
2025-04-28Add expression fill mode variant for filling with underscore expressionsLukas Wirth-0/+3
2025-04-28Merge from rust-lang/rustLaurențiu Nicola-15/+7