about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/pat.rs
AgeCommit message (Expand)AuthorLines
2025-09-15Detect attempt to use var-args in closureEsteban Küber-8/+19
2025-08-25add span to struct pattern rest (..)Valdemar Erk-1/+1
2025-08-14Rollup merge of #137872 - estebank:extra-vert, r=compiler-errorsJakub Beránek-8/+10
2025-08-09remove `P`Deadbeef-20/+19
2025-08-04Include whitespace in "remove `|`" suggestion and make it hiddenEsteban Küber-8/+10
2025-06-12avoid `&mut P<T>` in `visit_expr` etc methodsDeadbeef-1/+1
2025-05-27Reduce `P<T>` to a typedef of `Box<T>`.Nicholas Nethercote-1/+1
2025-04-21Remove `token::{Open,Close}Delim`.Nicholas Nethercote-25/+24
2025-04-02Impl `Copy` for `Token` and `TokenKind`.Nicholas Nethercote-3/+3
2025-04-02Remove `NtExpr` and `NtLiteral`.Nicholas Nethercote-1/+1
2025-03-21remove `feature(inline_const_pat)`lcnr-9/+0
2025-03-03Rename `ast::TokenKind::Not` as `ast::TokenKind::Bang`.Nicholas Nethercote-3/+3
2025-03-03Replace `ast::TokenKind::BinOp{,Eq}` and remove `BinOpToken`.Nicholas Nethercote-4/+8
2025-02-28Remove `NtPat`.Nicholas Nethercote-7/+30
2025-02-03Do not allow attributes on struct field rest patternsJack Rickard-11/+11
2025-01-08Rename PatKind::Lit to ExprOli Scherer-6/+6
2024-12-19Speed up `Parser::expected_token_types`.Nicholas Nethercote-38/+39
2024-12-18Auto merge of #134443 - joshtriplett:use-field-init-shorthand, r=lqd,tgross35...bors-1/+1
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
2024-12-17Use field init shorthand where possibleJosh Triplett-1/+1
2024-12-13Keep track of patterns that could have introduced a binding, but didn'tEsteban Küber-2/+2
2024-12-08Rollup merge of #133424 - Nadrieril:guard-patterns-parsing, r=fee1-deadMatthias Krüger-14/+40
2024-11-30Eliminate magic numbers from expression precedenceDavid Tolnay-11/+5
2024-11-30Eliminate precedence arithmetic from rustc_parseDavid Tolnay-2/+5
2024-11-28Trim extra space in 'repeated `mut`' diagnosticclubby789-1/+3
2024-11-26Rollup merge of #133140 - dtolnay:precedence, r=fmeaseMichael Goulet-7/+10
2024-11-24parse guard patternsNadrieril-7/+32
2024-11-24refactor pat parser method names/doc-comments to agree with RFC 3637Max Niederman-14/+15
2024-11-17Inline ExprPrecedence::order into Expr::precedenceDavid Tolnay-7/+10
2024-11-15Trim whitespace in RemoveLet primary spanTyrone Wu-1/+1
2024-11-13Trim extra space when suggesting removing bad `let`clubby789-1/+3
2024-10-02Rollup merge of #130725 - GrigorenkoPV:@-in-struct-patterns, r=NadrierilJubilee-13/+41
2024-09-23Parser: better error messages for `@` in struct patternsPavel Grigorenko-13/+41
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-4/+4
2024-09-18Add suggestions for expressions in patternsLieselotte-9/+218
2024-09-18Recover more expressions in patternsLieselotte-57/+86
2024-09-11Also fix if in elseMichael Goulet-15/+13
2024-09-06Add initial support for raw lifetimesMichael Goulet-3/+3
2024-09-02chore: Fix typos in 'compiler' (batch 2)Alexander Cyon-1/+1
2024-08-26Don't make pattern nonterminals match statement nonterminalsMichael Goulet-1/+5
2024-08-21Use bool in favor of Option<()> for diagnosticsMichael Goulet-1/+1
2024-08-16Overhaul token collection.Nicholas Nethercote-17/+16
2024-08-16Convert a bool to `Trailing`.Nicholas Nethercote-1/+1
2024-08-14Use `impl PartialEq<TokenKind> for Token` more.Nicholas Nethercote-10/+10
2024-07-31Remove `LhsExpr`.Nicholas Nethercote-3/+4
2024-07-29Reformat `use` declarations.Nicholas Nethercote-14/+15
2024-07-22Always pass the visitor as the first argument to walk* functionsOli Scherer-1/+1
2024-07-22Sync `mut_visit` function names with immut `visit` ones (s/noop_visit/walk/)Oli Scherer-2/+2
2024-07-18Remove `TrailingToken`.Nicholas Nethercote-4/+3
2024-07-17Rollup merge of #127806 - nnethercote:parser-improvements, r=spastorinoTrevor Gross-1/+1