File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/rustc_parse/src/parser Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1220,7 +1220,7 @@ impl<'a> Parser<'a> {
12201220 Ok ( ( ) )
12211221 }
12221222
1223- pub ( super ) fn maybe_recover_from_prefix_increment (
1223+ pub ( super ) fn recover_from_prefix_increment (
12241224 & mut self ,
12251225 operand_expr : P < Expr > ,
12261226 op_span : Span ,
@@ -1235,7 +1235,7 @@ impl<'a> Parser<'a> {
12351235 self . recover_from_inc_dec ( operand_expr, kind, op_span)
12361236 }
12371237
1238- pub ( super ) fn maybe_recover_from_postfix_increment (
1238+ pub ( super ) fn recover_from_postfix_increment (
12391239 & mut self ,
12401240 operand_expr : P < Expr > ,
12411241 op_span : Span ,
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ impl<'a> Parser<'a> {
273273 let op_span = self . prev_token . span . to ( self . token . span ) ;
274274 // Eat the second `+`
275275 self . bump ( ) ;
276- lhs = self . maybe_recover_from_postfix_increment ( lhs, op_span) ?;
276+ lhs = self . recover_from_postfix_increment ( lhs, op_span) ?;
277277 continue ;
278278 }
279279
@@ -601,7 +601,7 @@ impl<'a> Parser<'a> {
601601 this. bump ( ) ;
602602
603603 let operand_expr = this. parse_dot_or_call_expr ( Default :: default ( ) ) ?;
604- this. maybe_recover_from_prefix_increment ( operand_expr, pre_span, prev_is_semi)
604+ this. recover_from_prefix_increment ( operand_expr, pre_span, prev_is_semi)
605605 }
606606 token:: Ident ( ..) if this. token . is_keyword ( kw:: Box ) => {
607607 make_it ! ( this, attrs, |this, _| this. parse_box_expr( lo) )
You can’t perform that action at this time.
0 commit comments