@@ -190,7 +190,7 @@ impl<'a> Parser<'a> {
190
190
}
191
191
} ;
192
192
193
- if !self . should_continue_as_assoc_expr ( & lhs) {
193
+ if !self . should_continue_as_assoc_expr_FIXME ( & lhs) {
194
194
return Ok ( lhs) ;
195
195
}
196
196
@@ -381,8 +381,9 @@ impl<'a> Parser<'a> {
381
381
Ok ( lhs)
382
382
}
383
383
384
- fn should_continue_as_assoc_expr ( & mut self , lhs : & Expr ) -> bool {
385
- match ( self . expr_is_complete ( lhs) , AssocOp :: from_token ( & self . token ) ) {
384
+ #[ allow( non_snake_case) ]
385
+ fn should_continue_as_assoc_expr_FIXME ( & mut self , lhs : & Expr ) -> bool {
386
+ match ( self . expr_is_complete_FIXME ( lhs) , AssocOp :: from_token ( & self . token ) ) {
386
387
// Semi-statement forms are odd:
387
388
// See https://github.com/rust-lang/rust/issues/29071
388
389
( true , None ) => false ,
@@ -482,7 +483,8 @@ impl<'a> Parser<'a> {
482
483
}
483
484
484
485
/// Checks if this expression is a successfully parsed statement.
485
- fn expr_is_complete ( & self , e : & Expr ) -> bool {
486
+ #[ allow( non_snake_case) ]
487
+ fn expr_is_complete_FIXME ( & self , e : & Expr ) -> bool {
486
488
self . restrictions . contains ( Restrictions :: STMT_EXPR )
487
489
&& match e. kind {
488
490
ExprKind :: MacCall ( _) => false ,
@@ -990,7 +992,7 @@ impl<'a> Parser<'a> {
990
992
e = self . parse_dot_suffix_expr ( lo, e) ?;
991
993
continue ;
992
994
}
993
- if self . expr_is_complete ( & e) {
995
+ if self . expr_is_complete_FIXME ( & e) {
994
996
return Ok ( e) ;
995
997
}
996
998
e = match self . token . kind {
0 commit comments