about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/nonterminal.rs
AgeCommit message (Expand)AuthorLines
2023-12-18Use `.into_diagnostic()` less.Nicholas Nethercote-12/+10
2023-12-18Rename `Parser::span_diagnostic` as `Parser::dcx`.Nicholas Nethercote-5/+6
2023-12-02Use `Session::diagnostic` in more places.Nicholas Nethercote-4/+4
2023-11-16More detail when expecting expression but encountering bad macro argumentEsteban Küber-7/+7
2023-10-13Format all the let chains in compilerMichael Goulet-19/+18
2023-08-18Rename `NtOrTt` as `ParseNtResult`.Nicholas Nethercote-4/+4
2023-08-17Simplify a `match`.Nicholas Nethercote-4/+1
2023-08-17Make some `match`es exhaustive in `nonterminal.rs`.Nicholas Nethercote-5/+20
2023-08-17Use `Nonterminal::*` in `nonterminal.rs`.Nicholas Nethercote-26/+17
2023-08-17Remove unnecessary braces on `PatWithOr` patterns.Nicholas Nethercote-4/+4
2023-08-17Rename `parse_no_question_mark_recover`.Nicholas Nethercote-1/+1
2023-08-17Remove outdated comment.Nicholas Nethercote-2/+0
2023-08-03Avoid too many expected symbols and reduce `None`sr0cky-1/+1
2023-08-03Keep the suggestion for wrong arbitrary self typesMu001999-2/+2
2023-04-16use matches! macro in more placesMatthias Krüger-6/+4
2023-02-01rustc_parse: migrate more to diagnostic structsXiretza-8/+14
2022-11-22`rustc_parse`: remove `ref` patternsMaybe Waffle-8/+8
2022-09-15slight vertical formattingRageking8-12/+12
2022-05-11ast: Introduce some traits to get AST node properties genericallyVadim Petrochenkov-1/+1
2022-04-28rustc_ast: Harmonize delimiter naming with `proc_macro::Delimiter`Vadim Petrochenkov-4/+4
2022-04-20Inline `Parser::nonterminal_may_begin_with`.Nicholas Nethercote-2/+4
2022-04-20Inline `Parser::parse_nonterminal`.Nicholas Nethercote-1/+3
2022-04-07Shrink `Nonterminal`.Nicholas Nethercote-3/+3
2022-03-28Remove `Nonterminal::NtTT`.Nicholas Nethercote-12/+17
2022-03-04Do not recover from `Ty?` in macro parsingEsteban Kuber-1/+1
2022-02-28Tweak diagnosticsEsteban Kuber-2/+2
2021-08-25Use if-let guards in the codebaseLéo Lanteri Thauvin-8/+9
2021-07-14Suggest a path separator if a stray colon is found in a match armFabian Wolff-2/+2
2021-06-06parser: Ensure that all nonterminals have tokens after parsingVadim Petrochenkov-2/+15
2021-04-27remove pat2021mark-4/+4
2021-04-15rename pat2015 to pat_parammark-4/+6
2021-04-11Implement token-based handling of attributes during expansionAaron Hill-3/+1
2021-03-25Avoid double-collection for expression nonterminalsAaron Hill-16/+1
2021-03-23Rollup merge of #83384 - mark-i-m:rename-pat2018, r=joshtriplettYuki Okushi-3/+3
2021-03-22rename :pat2018 -> :pat215mark-3/+3
2021-03-19stabilize or_patternsmark-2/+2
2021-02-15Simplify pattern grammar by allowing nested leading vertmark-2/+2
2021-02-13Address review commentsAaron Hill-1/+1
2021-02-13Require passing an `AttrWrapper` to `collect_tokens_trailing_token`Aaron Hill-10/+34
2021-02-02Bump rustfmt versionMark Rousskov-7/+10
2021-01-20Force token collection to run when parsing nonterminalsAaron Hill-3/+3
2021-01-13Set tokens on AST node in `collect_tokens`Aaron Hill-81/+18
2020-12-30Implement edition-based macro pat featuremark-17/+10
2020-12-19implement edition-specific :pat behavior for 2015/18mark-3/+20
2020-12-17Don't allow `const` to begin a nonterminalCamelid-0/+2
2020-11-26Properly handle attributes on statementsAaron Hill-2/+2
2020-10-30Fix even more clippy warningsJoshua Nelson-14/+8
2020-10-22Don't create an empty `LazyTokenStream`Aaron Hill-10/+10
2020-10-21Unconditionally capture tokens for attributes.Aaron Hill-1/+1
2020-09-10Attach tokens to `ast::Stmt`Aaron Hill-4/+14