Skip to content

Commit 04cf6b4

Browse files
committed
Rename parse_no_question_mark_recover.
Adding a `ty_` makes its purpose much clearer, and consistent with other `parse_ty_*` functions.
1 parent 3bb85b7 commit 04cf6b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_parse/src/parser/nonterminal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl<'a> Parser<'a> {
149149
}
150150

151151
NonterminalKind::Ty => token::NtTy(
152-
self.collect_tokens_no_attrs(|this| this.parse_no_question_mark_recover())?,
152+
self.collect_tokens_no_attrs(|this| this.parse_ty_no_question_mark_recover())?,
153153
),
154154

155155
// this could be handled like a token, since it is one

compiler/rustc_parse/src/parser/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl<'a> Parser<'a> {
180180
)
181181
}
182182

183-
pub(super) fn parse_no_question_mark_recover(&mut self) -> PResult<'a, P<Ty>> {
183+
pub(super) fn parse_ty_no_question_mark_recover(&mut self) -> PResult<'a, P<Ty>> {
184184
self.parse_ty_common(
185185
AllowPlus::Yes,
186186
AllowCVariadic::No,

0 commit comments

Comments
 (0)