about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/pat.rs
AgeCommit message (Expand)AuthorLines
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
2024-03-21Use better variable names in some `maybe_whole!` calls.Nicholas Nethercote-1/+1
2024-03-05Rename all `ParseSess` variables/fields/lifetimes as `psess`.Nicholas Nethercote-10/+11
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-8/+4
2024-02-25Add `ErrorGuaranteed` to `ast::ExprKind::Err`Lieselotte-10/+8
2024-02-25Add `ast::ExprKind::Dummy`Lieselotte-1/+1
2024-02-20Add newtype for trailing in parserclubby789-7/+9
2024-02-20Add newtype for raw identsclubby789-1/+1
2024-02-15errors: only eagerly translate subdiagnosticsDavid Wood-1/+1
2024-01-30Rollup merge of #120460 - nnethercote:fix-120397, r=compiler-errorsGuillaume Gomez-1/+3
2024-01-29Be more careful about interpreting a label/lifetime as a mistyped char literal.Nicholas Nethercote-1/+3
2024-01-28Handle methodcalls & operators in patternsLieselotte-13/+142
2024-01-10Rename consuming chaining methods on `DiagnosticBuilder`.Nicholas Nethercote-1/+1
2024-01-08Remove `DiagnosticBuilder::delay_as_bug_without_consuming`.Nicholas Nethercote-3/+4
2024-01-08Use chaining in `DiagnosticBuilder` construction.Nicholas Nethercote-3/+4
2024-01-08Make `DiagnosticBuilder::emit` consuming.Nicholas Nethercote-7/+7
2024-01-03Recover parentheses in range patternsLieselotte-3/+53
2023-12-24Remove `ParseSess` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-21/+21
2023-12-24Remove `Parser` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-3/+3
2023-12-23Rollup merge of #119231 - aDotInTheVoid:PatKind-struct-bool-docs, r=compiler-...Matthias Krüger-5/+6
2023-12-23bool->enum for ast::PatKind::Struct presence of `..`Alona Enraght-Moony-5/+6
2023-12-23Give `DiagnosticBuilder` a default type.Nicholas Nethercote-4/+4
2023-12-18Use `.into_diagnostic()` less.Nicholas Nethercote-5/+6
2023-12-18Rename `Parser::span_diagnostic` as `Parser::dcx`.Nicholas Nethercote-2/+2
2023-12-08Auto merge of #118527 - Nadrieril:never_patterns_parse, r=compiler-errorsbors-8/+4
2023-12-03Detect attempts to expand a macro to a match arm againNadrieril-6/+2
2023-12-03Parse a pattern with no armNadrieril-2/+2
2023-12-02Use `Session::diagnostic` in more places.Nicholas Nethercote-2/+2
2023-11-29Avoid unnecessary pattern parse errors on `ref box`Esteban Küber-3/+3
2023-11-29When parsing patterns, bubble all errors except reserved idents that aren't l...Esteban Küber-1/+13
2023-11-29Make `parse_pat_ident` not recover bad nameEsteban Küber-1/+1
2023-11-29Rollup merge of #118157 - Nadrieril:never_pat-feature-gate, r=compiler-errorsMatthias Krüger-1/+5
2023-11-29Add `never_patterns` feature gateNadrieril-1/+5
2023-11-27Suggest swapping the order of `ref` and `box`Hirochika Matsumoto-2/+8
2023-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-2/+2
2023-11-17Auto merge of #114292 - estebank:issue-71039, r=b-naberbors-1/+1
2023-11-16Smaller span for unnessary `mut` suggestionEsteban Küber-5/+5
2023-11-16More detail when expecting expression but encountering bad macro argumentEsteban Küber-1/+1
2023-11-02Minimize `pub` usage in `source_map.rs`.Nicholas Nethercote-1/+2
2023-10-30Account for `ref` and `mut` in the wrong place for pattern ident renamingEsteban Küber-1/+33
2023-09-12Only suggest turbofish in patterns if we may recoverLeón Orell Valerian Liehr-1/+2
2023-08-04Rollup merge of #113999 - Centri3:macro-arm-expand, r=wesleywiserMatthias Krüger-2/+6
2023-08-03Rollup merge of #114300 - MU001999:fix/turbofish-pat, r=estebankMatthias Krüger-22/+46
2023-08-03Avoid too many expected symbols and reduce `None`sr0cky-15/+28
2023-08-03Apply suggestionsr0cky-2/+4