diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-08-09 12:57:05 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-08-17 09:01:12 +1000 |
| commit | 04cf6b4ac56ee72b6621b82a01074607da70f04b (patch) | |
| tree | 3886d29d473559f044a368f726270521e76e4e65 /compiler/rustc_parse/src | |
| parent | 3bb85b73b5af587e4934ee006f8d5d81976c7a43 (diff) | |
| download | rust-04cf6b4ac56ee72b6621b82a01074607da70f04b.tar.gz rust-04cf6b4ac56ee72b6621b82a01074607da70f04b.zip | |
Rename `parse_no_question_mark_recover`.
Adding a `ty_` makes its purpose much clearer, and consistent with other `parse_ty_*` functions.
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/nonterminal.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_parse/src/parser/ty.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/nonterminal.rs b/compiler/rustc_parse/src/parser/nonterminal.rs index 7e1a2b6a306..7fb517ffdb8 100644 --- a/compiler/rustc_parse/src/parser/nonterminal.rs +++ b/compiler/rustc_parse/src/parser/nonterminal.rs @@ -149,7 +149,7 @@ impl<'a> Parser<'a> { } NonterminalKind::Ty => token::NtTy( - self.collect_tokens_no_attrs(|this| this.parse_no_question_mark_recover())?, + self.collect_tokens_no_attrs(|this| this.parse_ty_no_question_mark_recover())?, ), // this could be handled like a token, since it is one diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs index 3bb50b05aa3..88e640f1696 100644 --- a/compiler/rustc_parse/src/parser/ty.rs +++ b/compiler/rustc_parse/src/parser/ty.rs @@ -180,7 +180,7 @@ impl<'a> Parser<'a> { ) } - pub(super) fn parse_no_question_mark_recover(&mut self) -> PResult<'a, P<Ty>> { + pub(super) fn parse_ty_no_question_mark_recover(&mut self) -> PResult<'a, P<Ty>> { self.parse_ty_common( AllowPlus::Yes, AllowCVariadic::No, |
