@@ -191,7 +191,7 @@ impl<'a> Parser<'a> {
191
191
}
192
192
} ;
193
193
194
- if !self . should_continue_as_assoc_expr ( & lhs) {
194
+ if !self . should_continue_as_assoc_expr_FIXME ( & lhs) {
195
195
return Ok ( lhs) ;
196
196
}
197
197
@@ -382,8 +382,9 @@ impl<'a> Parser<'a> {
382
382
Ok ( lhs)
383
383
}
384
384
385
- fn should_continue_as_assoc_expr ( & mut self , lhs : & Expr ) -> bool {
386
- match ( self . expr_is_complete ( lhs) , AssocOp :: from_token ( & self . token ) ) {
385
+ #[ allow( non_snake_case) ]
386
+ fn should_continue_as_assoc_expr_FIXME ( & mut self , lhs : & Expr ) -> bool {
387
+ match ( self . expr_is_complete_FIXME ( lhs) , AssocOp :: from_token ( & self . token ) ) {
387
388
// Semi-statement forms are odd:
388
389
// See https://github.com/rust-lang/rust/issues/29071
389
390
( true , None ) => false ,
@@ -468,7 +469,8 @@ impl<'a> Parser<'a> {
468
469
}
469
470
470
471
/// Checks if this expression is a successfully parsed statement.
471
- fn expr_is_complete ( & self , e : & Expr ) -> bool {
472
+ #[ allow( non_snake_case) ]
473
+ fn expr_is_complete_FIXME ( & self , e : & Expr ) -> bool {
472
474
self . restrictions . contains ( Restrictions :: STMT_EXPR )
473
475
&& match e. kind {
474
476
ExprKind :: MacCall ( _) => false ,
@@ -978,7 +980,7 @@ impl<'a> Parser<'a> {
978
980
e = self . parse_dot_suffix_expr ( lo, e) ?;
979
981
continue ;
980
982
}
981
- if self . expr_is_complete ( & e) {
983
+ if self . expr_is_complete_FIXME ( & e) {
982
984
return Ok ( e) ;
983
985
}
984
986
e = match self . token . kind {
0 commit comments