about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/pat.rs
AgeCommit message (Expand)AuthorLines
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
2022-08-15Simplify attribute handling in `parse_bottom_expr`.Nicholas Nethercote-4/+4
2022-06-13remove unnecessary `to_string` and `String::new`Takayuki Maeda-31/+11
2022-06-08Suggest escaping `box` as identifierChayim Refael Friedman-4/+57
2022-05-19Move condition out of `maybe_recover_unexpected_comma`.Nicholas Nethercote-2/+6
2022-05-19Move condition out of `maybe_recover_colon_colon_in_pat_typo`.Nicholas Nethercote-2/+4
2022-05-19Move condition out of `maybe_recover_from_bad_qpath`.Nicholas Nethercote-1/+1
2022-04-29errors: `span_suggestion` takes `impl ToString`David Wood-1/+1
2022-04-28rustc_ast: Harmonize delimiter naming with `proc_macro::Delimiter`Vadim Petrochenkov-15/+15
2022-03-02rename ErrorReported -> ErrorGuaranteedmark-3/+3
2022-02-28Tweak diagnosticsEsteban Kuber-9/+42
2022-02-23rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission".Eduard-Mihai Burtescu-3/+3
2022-02-23rustc_errors: take `self` by value in `DiagnosticBuilder::cancel`.Eduard-Mihai Burtescu-2/+2
2021-11-29review comments: clean upEsteban Kuber-171/+5
2021-11-25When recovering from a `:` in a pattern, use adequate AST patternEsteban Küber-16/+87
2021-11-22Split inline const to two feature gatesGary Guo-2/+2
2021-11-20Fix ICE `#90993`: add missing call to cancelBadel2-1/+1
2021-07-30Use multispan suggestions more oftenEsteban Küber-1/+1
2021-07-18Auto merge of #87071 - inquisitivecrystal:inclusive-range, r=estebankbors-3/+36
2021-07-14Suggest a path separator if a stray colon is found in a match armFabian Wolff-8/+70
2021-07-11Give a helpful error for the mistake `..==`Aris Merchant-3/+36
2021-07-11Auto merge of #83918 - workingjubilee:stable-rangefrom-pat, r=joshtriplettbors-2/+0
2021-06-10Add support for using qualified paths with structs in expression and patternRyan Levick-16/+7
2021-04-05Allow exclusive range-from patternsJubilee Young-2/+0
2021-03-19stabilize or_patternsmark-54/+19
2021-03-16ast/hir: Rename field-related structuresVadim Petrochenkov-4/+4
2021-03-05use pat<no_top_alt> for patterns in let bindingsmark-62/+122
2021-02-23Rollup merge of #81235 - reese:rw-tuple-diagnostics, r=estebankDylan DPC-1/+1
2021-02-15Simplify pattern grammar by allowing nested leading vertmark-81/+102
2021-02-13Require passing an `AttrWrapper` to `collect_tokens_trailing_token`Aaron Hill-11/+19
2021-01-29Fix typo in pat.rsIkko Ashimine-1/+1
2021-01-20Improve suggestion for tuple struct pattern matching errors.Reese Williams-1/+1
2020-12-30Implement edition-based macro pat featuremark-7/+0
2020-12-19implement edition-specific :pat behavior for 2015/18mark-3/+14