about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/pat.rs
AgeCommit message (Expand)AuthorLines
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
2024-07-16Deny keyword lifetimes pre-expansionMichael Goulet-4/+4
2024-07-16Reorder `Parser::parse_expr_dot_or_call_with` arguments.Nicholas Nethercote-1/+1
2024-07-12Make parse error suggestions verbose and fix spansEsteban Küber-16/+34
2024-06-20Inline `can_begin_literal_maybe_minus` call into two places.Nicholas Nethercote-1/+2
2024-06-19Auto merge of #126678 - nnethercote:fix-duplicated-attrs-on-nt-expr, r=petroc...bors-4/+3
2024-06-19Refactor `LhsExpr`.Nicholas Nethercote-1/+1
2024-06-19Remove `From` impls for `LhsExpr`.Nicholas Nethercote-4/+3
2024-06-18Remove redundant argument from `subdiagnostic` methodOli Scherer-1/+1
2024-05-13Remove a `Span` from `TokenKind::Interpolated`.Nicholas Nethercote-1/+1
2024-04-17Rename `BindingAnnotation` to `BindingMode`Jules Bertholet-14/+12
2024-04-04Rename ModSep to PathSepLeón Orell Valerian Liehr-1/+1
2024-03-27Feature gateJules Bertholet-0/+4
2024-03-27Implement `mut ref`/`mut ref mut`Jules Bertholet-21/+18
2024-03-21Rollup merge of #122793 - compiler-errors:deref-pat-syntax, r=NadrierilMatthias Krüger-1/+19
2024-03-21Implement macro-based deref!() syntax for deref patternsMichael Goulet-1/+19