about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/item.rs
AgeCommit message (Expand)AuthorLines
2025-08-14Add FnContext in parser for diagnosticxizheyin-20/+48
2025-08-11Extract ast TraitImplHeaderCameron Steffen-14/+13
2025-08-11Tweak trait modifier errorsCameron Steffen-19/+10
2025-08-11Move trait impl modifier errors to parsingCameron Steffen-1/+35
2025-08-09remove `P`Deadbeef-20/+21
2025-08-06Rollup merge of #144956 - fmease:gate-const-trait-syntax, r=BoxyUwUGuillaume Gomez-0/+3
2025-08-05Gate const trait syntaxLeón Orell Valerian Liehr-0/+3
2025-07-28use let chains in mir, resolve, targetKivooeo-27/+25
2025-07-17parse `const trait Trait`Deadbeef-7/+21
2025-07-10Remove uncessary parens in closure body with unused lintyukang-1/+1
2025-06-26Make recovery for enum with struct field a bit more accurateMichael Goulet-1/+2
2025-06-20Recover from semicolon field separatorCameron Steffen-15/+18
2025-06-20Factor out seen_comma variableCameron Steffen-15/+3
2025-06-13Rework how the disallowed qualifier lints are generatedJonathan Brouwer-6/+75
2025-06-06Rollup merge of #141603 - nnethercote:reduce-P, r=fee1-deadGuillaume Gomez-2/+2
2025-05-28Reorder `ast::ItemKind::{Struct,Enum,Union}` fields.Nicholas Nethercote-3/+3
2025-05-27Reduce `P<T>` to a typedef of `Box<T>`.Nicholas Nethercote-2/+2
2025-05-07Use `parse_param_general` when parsing `(T, U)->R` in `parse_path_segment`xizheyin-4/+11
2025-04-24Revert overzealous parse recovery for single colonsLeón Orell Valerian Liehr-0/+11
2025-04-21Remove `token::{Open,Close}Delim`.Nicholas Nethercote-31/+25
2025-04-14Auto merge of #124141 - nnethercote:rm-Nonterminal-and-TokenKind-Interpolated...bors-4/+3
2025-04-09Avoid an empty trait name in impl blocks.Nicholas Nethercote-4/+5
2025-04-09Return early on an error path in `parse_item_impl`.Nicholas Nethercote-11/+3
2025-04-07Rollup merge of #139035 - nnethercote:PatKind-Missing, r=oli-obkStuart Cook-3/+1
2025-04-02Fix two incorrect turbofish suggestionsFreya Arbjerg-7/+25
2025-04-02Impl `Copy` for `Token` and `TokenKind`.Nicholas Nethercote-3/+2
2025-04-02Remove `NtBlock`, `Nonterminal`, and `TokenKind::Interpolated`.Nicholas Nethercote-1/+1
2025-04-02Remove `Token::uninterpolated_span`.Nicholas Nethercote-5/+5
2025-04-02Remove `NtExpr` and `NtLiteral`.Nicholas Nethercote-9/+44
2025-04-01Address review comments.Nicholas Nethercote-17/+16
2025-04-01Move `ast::Item::ident` into `ast::ItemKind`.Nicholas Nethercote-103/+98
2025-03-28Add `{ast,hir,thir}::PatKind::Missing` variants.Nicholas Nethercote-3/+1
2025-03-26Rollup merge of #138898 - fmease:decrustify-parser-post-ty-ascr, r=compiler-e...Stuart Cook-1/+1
2025-03-25Rollup merge of #138911 - compiler-errors:define-opaque, r=oli-obkJacob Pratt-2/+11
2025-03-25Allow defining opaques in statics and constsMichael Goulet-2/+11
2025-03-25Remove now unreachable parse recovery codeLeón Orell Valerian Liehr-1/+1
2025-03-25Use `sym::dummy` for a dummy arg in `parse_fn_params`.Nicholas Nethercote-1/+1
2025-03-17If a label is placed on the block of a loop instead of the header, suggest mo...Zachary S-1/+1
2025-03-12Auto merge of #138083 - nnethercote:rm-NtItem-NtStmt, r=petrochenkovbors-5/+8
2025-03-12Factor out some repeated code in `parse_item_impl`.Nicholas Nethercote-24/+13
2025-03-11Implement `#[define_opaque]` attribute for functions.Oli Scherer-1/+8
2025-03-07Rollup merge of #134797 - spastorino:ergonomic-ref-counting-1, r=nikomatsakisMatthias Krüger-2/+17
2025-03-07Remove `NtItem` and `NtStmt`.Nicholas Nethercote-5/+8
2025-03-06Fix use closure parsing error messageSantiago Pastorino-3/+16
2025-03-06Support nested use closuresSantiago Pastorino-1/+3
2025-03-06Use closure parse codeSantiago Pastorino-1/+1
2025-03-05Simplify `parse_self_param`Frank King-43/+20
2025-03-05Implement `&pin const self` and `&pin mut self` sugarsFrank King-0/+45
2025-03-03Rename `ast::TokenKind::Not` as `ast::TokenKind::Bang`.Nicholas Nethercote-8/+8
2025-03-03Replace `ast::TokenKind::BinOp{,Eq}` and remove `BinOpToken`.Nicholas Nethercote-6/+6