about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/pat.rs
AgeCommit message (Expand)AuthorLines
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
2023-08-03Keep the suggestion for wrong arbitrary self typesMu001999-14/+22
2023-08-01Suggests turbofish in patternsMu001999-0/+1
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-3/+3
2023-07-24Recover from some macrosCatherine Flores-5/+1
2023-07-24Specify macro is invalid in certain contextsCatherine-2/+10
2023-07-20Don't translate compiler-internal bug messagesOli Scherer-33/+16
2023-06-03Fix suggestion for matching struct with `..` on both ends许杰友 Jieyou Xu (Joe)-12/+45
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-3/+3
2023-05-01Rip it outNilstrieb-5/+5
2023-04-27Migrate trivially translatable `rustc_parse` diagnosticsclubby789-13/+8
2023-03-20feat: implement error recovery in `expected_ident_found`Ezra Shaw-2/+8
2023-03-19refactor: improve "ident starts with number" errorEzra Shaw-5/+1
2023-03-09feat/refactor: improve errors in case of ident with number at startEzra Shaw-0/+4
2023-02-22errors: generate typed identifiers in each crateDavid Wood-3/+2
2023-02-21Use `ThinVec` in `ast::PatKind::Struct`.Nicholas Nethercote-4/+4
2023-02-21Use `ThinVec` in various AST types.Nicholas Nethercote-2/+3
2023-02-02Rollup merge of #107493 - clubby789:range-fat-arrow-followup, r=estebankMatthias Krüger-1/+1
2023-02-02Rollup merge of #106919 - compiler-errors:underscore-typo-in-field-pat, r=jac...Matthias Krüger-7/+11
2023-02-02Improve diagnostic for missing space in range patternclubby789-1/+1
2023-02-02Recover _ as .. in field patternMichael Goulet-7/+11
2023-02-02Revert "Teach parser to understand fake anonymous enum syntax" and related co...Michael Goulet-2/+1
2023-02-01Convert rustc_parse::parser::pat::Expected to enumXiretza-16/+32
2023-02-01rustc_parse: migrate more to diagnostic structsXiretza-177/+104
2023-01-28Migrate some range parsing diagnosticsclubby789-19/+8
2023-01-28Check for missing space between fat arrow and range patternclubby789-13/+31
2023-01-17Teach parser to understand fake anonymous enum syntaxEsteban Küber-1/+2
2023-01-14Fix some missed double spaces.André Vennberg-1/+1
2022-12-23Always suggest as `MachineApplicable` in `recover_intersection_pat`Yuki Okushi-12/+6
2022-12-05Parameterise `Parser::{recover_unclosed_char,handle_missing_lit}`.Nicholas Nethercote-9/+13
2022-12-02Remove `token::Lit` from `ast::MetaItemLit`.Nicholas Nethercote-1/+1
2022-11-22`rustc_parse`: remove `ref` patternsMaybe Waffle-3/+3
2022-11-22Split `MacArgs` in two.Nicholas Nethercote-1/+1
2022-11-17Box `ExprKind::{Closure,MethodCall}`, and `QSelf` in expressions, types, and ...Nicholas Nethercote-2/+6
2022-11-16Use `token::Lit` in `ast::ExprKind::Lit`.Nicholas Nethercote-1/+1
2022-10-22Recover unclosed char literal being parsed as lifetimeMichael Goulet-0/+20
2022-10-08Stabilize half_open_range_patternsUrgau-1/+0
2022-09-30Remove expr_parentheses_needed from ParseSessMichael Goulet-1/+2
2022-09-27Move rustc_parse diagnostic structs to separate moduleXiretza-1/+1
2022-09-06Auto merge of #101362 - compiler-errors:unnecessary-let, r=cjgillotbors-1/+8
2022-09-03Suggest removing unnecessary prefix let in patternsMichael Goulet-1/+8
2022-09-02Refactor and re-use BindingAnnotationCameron Steffen-23/+19
2022-08-22Use `AttrVec` in more places.Nicholas Nethercote-4/+4
2022-08-17Box the `MacCall` in various types.Nicholas Nethercote-1/+1