@@ -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
@@ -383,8 +383,9 @@ impl<'a> Parser<'a> {
383
383
Ok ( lhs)
384
384
}
385
385
386
- fn should_continue_as_assoc_expr ( & mut self , lhs : & Expr ) -> bool {
387
- match ( self . expr_is_complete ( lhs) , AssocOp :: from_token ( & self . token ) ) {
386
+ #[ allow( non_snake_case) ]
387
+ fn should_continue_as_assoc_expr_FIXME ( & mut self , lhs : & Expr ) -> bool {
388
+ match ( self . expr_is_complete_FIXME ( lhs) , AssocOp :: from_token ( & self . token ) ) {
388
389
// Semi-statement forms are odd:
389
390
// See https://github.com/rust-lang/rust/issues/29071
390
391
( true , None ) => false ,
@@ -496,7 +497,8 @@ impl<'a> Parser<'a> {
496
497
}
497
498
498
499
/// Checks if this expression is a successfully parsed statement.
499
- fn expr_is_complete ( & self , e : & Expr ) -> bool {
500
+ #[ allow( non_snake_case) ]
501
+ fn expr_is_complete_FIXME ( & self , e : & Expr ) -> bool {
500
502
self . restrictions . contains ( Restrictions :: STMT_EXPR )
501
503
&& match e. kind {
502
504
ExprKind :: MacCall ( _) => false ,
@@ -1012,7 +1014,7 @@ impl<'a> Parser<'a> {
1012
1014
e = self . parse_dot_suffix_expr ( lo, e) ?;
1013
1015
continue ;
1014
1016
}
1015
- if self . expr_is_complete ( & e) {
1017
+ if self . expr_is_complete_FIXME ( & e) {
1016
1018
return Ok ( e) ;
1017
1019
}
1018
1020
e = match self . token . kind {
0 commit comments