about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/item.rs
AgeCommit message (Expand)AuthorLines
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
2025-02-28Remove `NtPat`.Nicholas Nethercote-3/+5
2025-02-15Try to recover from path sep error in parseryukang-3/+0
2025-02-08Rustfmtbjorn3-4/+4
2025-02-03Express contracts as part of function header and lower it to the contract lan...Celina G. Val-4/+9
2024-12-19Speed up `Parser::expected_token_types`.Nicholas Nethercote-180/+190
2024-12-19Rename `Parser::expected_tokens` as `Parser::expected_token_types`.Nicholas Nethercote-1/+1
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
2024-12-10Keep track of parse errors in `mod`s and don't emit resolve errors for paths ...Esteban Küber-1/+1
2024-12-09Detect `struct S(ty = val);`Esteban Küber-1/+17
2024-12-09Introduce `default_field_values` featureEsteban Küber-3/+8