about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/pat.rs
AgeCommit message (Expand)AuthorLines
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
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