summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/syntax
AgeCommit message (Collapse)AuthorLines
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-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
2025-04-21Merge pull request #19643 from ChayimFriedman2/generic-const-itemsLukas Wirth-3/+9
feat: Parse generic consts
2025-04-21feat: parse `super let`Lukas Wirth-1/+3
2025-04-21Parse generic constsChayim Refael Friedman-3/+9
A lang team experiment, https://github.com/rust-lang/rust/issues/113521.
2025-04-16fix: use `ast::TokenTree` in `make::expr_macro`Prajwal S N-12/+12
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-14Merge pull request #19568 from snprajwal/destructure-struct-editorLukas Wirth-3/+22
refactor: editor for `destructure_struct_binding`
2025-04-11fix: `make::expr_call() -> CallExpr`Prajwal S N-7/+2
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-11fix: `make::expr_method_call() -> MethodCallExpr`Prajwal S N-8/+3
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-11fix: `make::expr_closure() -> ClosureExpr`Prajwal S N-6/+5
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-11fix: `make::expr_paren() -> ParenExpr`Prajwal S N-5/+2
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-11refactor: editor for `destructure_struct_binding`Prajwal S N-3/+22
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-08Merge pull request #19541 from Veykril/push-twqrorwqzmwvLukas Wirth-0/+16
fix(auto-import): Prefer imports of matching types for argument lists
2025-04-08fix(auto-import): Prefer imports of matching types for argument lists Lukas Wirth-0/+16
2025-04-07Merge pull request #19511 from snprajwal/fixmesLukas Wirth-10/+2
chore: clean up some FIXMEs
2025-04-05Clean up `rustc-literal-escaper` usage in rust-analyzerGuillaume Gomez-3/+1
2025-04-04Update `rustc-literal-escaper` version to `0.0.2`Guillaume Gomez-1/+1
2025-04-04prefer default over newBenjaminBrienen-20/+9
2025-04-04Remove usage of `rustc_lexer::unescape` in rust-analyzerGuillaume Gomez-13/+7
2025-04-04chore: clean up some FIXMEsPrajwal S N-10/+2
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-31fix: Cleanup param name inlay hint filteringLukas Wirth-0/+10
2025-03-25minor: Simplify impl-ty parse validationLukas Wirth-55/+74
2025-03-25Merge pull request #19388 from Veykril/push-oqysrnttwywuLukas Wirth-1/+3
feat: parse `unsafe` record fields
2025-03-25feat: parse `unsafe` record fieldsLukas Wirth-1/+3
2025-03-25Merge pull request #19347 from ↵Lukas Wirth-1/+99
Shourya742/2025-03-13-add-diagnostic-for-dnagling-impl-with-lifetime Add diagnostic for missing ambiguity error for impl trait
2025-03-23chore: Bump dependenciesLukas Wirth-2/+2
2025-03-23chore: Remove unused dependenciesLukas Wirth-2/+0
2025-03-21add syntax validation test for &impl 'abit-aloo-0/+30
2025-03-21add syntax validation test for ambiguous +bit-aloo-0/+39
2025-03-21validate_impl_object_ty: Add diagnostics for and ambiguous .bit-aloo-1/+30
2025-03-21refactor: Reduce codegen burden for `SyntaxNode` and `SyntaxToken`Lukas Wirth-418/+2682
2025-03-17Observe unsafeness when generating manual impls of former derivesAli Bektas-1/+1
2025-03-15cargo fmtBenjaminBrienen-107/+94
2025-03-15edition = "2024"BenjaminBrienen-1/+1