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> {
1220
1220
Ok ( ( ) )
1221
1221
}
1222
1222
1223
- pub ( super ) fn maybe_recover_from_prefix_increment (
1223
+ pub ( super ) fn recover_from_prefix_increment (
1224
1224
& mut self ,
1225
1225
operand_expr : P < Expr > ,
1226
1226
op_span : Span ,
@@ -1235,7 +1235,7 @@ impl<'a> Parser<'a> {
1235
1235
self . recover_from_inc_dec ( operand_expr, kind, op_span)
1236
1236
}
1237
1237
1238
- pub ( super ) fn maybe_recover_from_postfix_increment (
1238
+ pub ( super ) fn recover_from_postfix_increment (
1239
1239
& mut self ,
1240
1240
operand_expr : P < Expr > ,
1241
1241
op_span : Span ,
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ impl<'a> Parser<'a> {
273
273
let op_span = self . prev_token . span . to ( self . token . span ) ;
274
274
// Eat the second `+`
275
275
self . bump ( ) ;
276
- lhs = self . maybe_recover_from_postfix_increment ( lhs, op_span) ?;
276
+ lhs = self . recover_from_postfix_increment ( lhs, op_span) ?;
277
277
continue ;
278
278
}
279
279
@@ -601,7 +601,7 @@ impl<'a> Parser<'a> {
601
601
this. bump ( ) ;
602
602
603
603
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)
605
605
}
606
606
token:: Ident ( ..) if this. token . is_keyword ( kw:: Box ) => {
607
607
make_it ! ( this, attrs, |this, _| this. parse_box_expr( lo) )
You can’t perform that action at this time.
0 commit comments