about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/syntax/rust.ungram
AgeCommit message (Collapse)AuthorLines
2025-07-22Parse `for<'a> [const]`Chayim Refael Friedman-5/+5
And also refactor parsing of HRTB.
2025-07-09Make `global_asm!()` workChayim Refael Friedman-0/+1
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/+2
only `asm!()` unsafe
2025-06-26Parse new const trait syntaxLukas Wirth-1/+1
2025-06-04Give path segment type anchors their own grammar ruleLukas Wirth-2/+5
2025-05-05Implement RFC 3503: frontmattersDeadbeef-0/+1
Supercedes #137193
2025-04-21Merge pull request #19643 from ChayimFriedman2/generic-const-itemsLukas Wirth-2/+3
feat: Parse generic consts
2025-04-21feat: parse `super let`Lukas Wirth-1/+1
2025-04-21Parse generic constsChayim Refael Friedman-2/+3
A lang team experiment, https://github.com/rust-lang/rust/issues/113521.
2025-03-25feat: parse `unsafe` record fieldsLukas Wirth-1/+1
2025-03-08fix(hir): `VariantDef` is `impl HasSource`Prajwal S N-0/+5
A new syntax node `ast::VariantDef` has been introduced to map between the HIR node and the AST. The files have been updated with `cargo test -p xtask`. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-01Cleanup string handling in syntax highlightingLukas Wirth-3/+3
2025-01-27feat: Implement `default-field-values`Shoyu Vanilla-1/+1
2024-12-18Fix AsmOption rule in rust.ungramArthur Baars-1/+1
2024-12-04Fix parsing of parenthesized type args and RTNLukas Wirth-1/+4
2024-10-27Put leading `|` in patterns under `OrPat`Chayim Refael Friedman-1/+1
Previously it was one level above, and that caused problems with macros that expand to it, because macros expect to get only one top-level node.
2024-10-22fix: Fix incorrect parsing of use boundsLukas Wirth-1/+8
Also lower them a bit more
2024-10-20feat: initial support for safe_kw in extern blocksroife-1/+2
2024-09-05Give InlineAsmOperand a HIR representationLukas Wirth-3/+5
2024-09-05Lower asm expressionsLukas Wirth-5/+3
2024-09-04Parse builtin#asm expressionsLukas Wirth-1/+26
2024-08-26Auto merge of #17941 - ChayimFriedman2:pre-closure-to-fn, r=Veykrilbors-1/+1
Preliminary work for #17940 I split the PR as requested, and made small commits.
2024-08-26Fix Return Type Syntax to include `..` (i.e. `method(..)` and not ↵Chayim Refael Friedman-1/+5
`method()`) as specified in the RFC
2024-08-24Add `gen` modifier to functionsChayim Refael Friedman-1/+1
We don't yet lower or maybe even parse them, but blocks already have `gen`, so why not.
2024-08-15internal: Properly check the edition for edition dependent syntax kindsLukas Wirth-14/+12
2024-07-24fix: `use` cannot have optional genericsWinston H.-1/+1
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2024-07-23feat: add `use` type bound grammarwinstxnhdw-0/+1
2024-07-17string is not a keywordLukas Wirth-1/+1
2024-07-17Add always disabled gen parse supportLukas Wirth-2/+6
2024-07-17Derive kinds information from ungrammar fileLukas Wirth-60/+68
2024-05-06Implement unsafe attribute parsingLukas Wirth-2/+3
2024-04-18Fixup some issues with minicoreLukas Wirth-0/+1
2024-04-18Handle panicking like rustc CTFE doesNilstrieb-0/+701
Instead of using `core::fmt::format` to format panic messages, which may in turn panic too and cause recursive panics and other messy things, redirect `panic_fmt` to `const_panic_fmt` like CTFE, which in turn goes to `panic_display` and does the things normally. See the tests for the full call stack.