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