@@ -97,7 +97,7 @@ impl<'a> Parser<'a> {
97
97
self . mk_stmt ( lo, StmtKind :: Empty )
98
98
} else if self . token != token:: CloseDelim ( token:: Brace ) {
99
99
// Remainder are line-expr stmts.
100
- let e = self . parse_expr_res ( Restrictions :: STMT_EXPR , Some ( attrs. into ( ) ) ) ?;
100
+ let e = self . parse_expr_res ( Restrictions :: STMT_EXPR , Some ( attrs) ) ?;
101
101
self . mk_stmt ( lo. to ( e. span ) , StmtKind :: Expr ( e) )
102
102
} else {
103
103
self . error_outer_attrs ( & attrs. take_for_recovery ( ) ) ;
@@ -131,7 +131,7 @@ impl<'a> Parser<'a> {
131
131
} ;
132
132
133
133
let expr = this. with_res ( Restrictions :: STMT_EXPR , |this| {
134
- let expr = this. parse_dot_or_call_expr_with ( expr, lo, attrs. into ( ) ) ?;
134
+ let expr = this. parse_dot_or_call_expr_with ( expr, lo, attrs) ?;
135
135
this. parse_assoc_expr_with ( 0 , LhsExpr :: AlreadyParsed ( expr) )
136
136
} ) ?;
137
137
Ok ( (
@@ -213,7 +213,7 @@ impl<'a> Parser<'a> {
213
213
}
214
214
215
215
fn recover_local_after_let ( & mut self , lo : Span , attrs : AttrVec ) -> PResult < ' a , Stmt > {
216
- let local = self . parse_local ( attrs. into ( ) ) ?;
216
+ let local = self . parse_local ( attrs) ?;
217
217
Ok ( self . mk_stmt ( lo. to ( self . prev_token . span ) , StmtKind :: Local ( local) ) )
218
218
}
219
219
0 commit comments