@@ -2190,14 +2190,16 @@ impl<'a> LoweringContext<'a> {
2190
2190
2191
2191
let next_ident = self . str_to_ident ( "next" ) ;
2192
2192
let next_pat = self . pat_ident ( e. span , next_ident) ;
2193
-
2193
+
2194
2194
// `::std::option::Option::Some(val) => next = val`
2195
2195
let pat_arm = {
2196
2196
let val_ident = self . str_to_ident ( "val" ) ;
2197
2197
let val_pat = self . pat_ident ( e. span , val_ident) ;
2198
2198
let val_expr = P ( self . expr_ident ( e. span , val_ident, val_pat. id ) ) ;
2199
2199
let next_expr = P ( self . expr_ident ( e. span , next_ident, next_pat. id ) ) ;
2200
- let assign = P ( self . expr ( e. span , hir:: ExprAssign ( next_expr, val_expr) , ThinVec :: new ( ) ) ) ;
2200
+ let assign = P ( self . expr ( e. span ,
2201
+ hir:: ExprAssign ( next_expr, val_expr) ,
2202
+ ThinVec :: new ( ) ) ) ;
2201
2203
let some_pat = self . pat_some ( e. span , val_pat) ;
2202
2204
self . arm ( hir_vec ! [ some_pat] , assign)
2203
2205
} ;
@@ -2232,7 +2234,7 @@ impl<'a> LoweringContext<'a> {
2232
2234
let match_stmt = respan ( e. span , hir:: StmtExpr ( match_expr, self . next_id ( ) ) ) ;
2233
2235
2234
2236
let next_expr = P ( self . expr_ident ( e. span , next_ident, next_pat. id ) ) ;
2235
-
2237
+
2236
2238
// `let next`
2237
2239
let next_let = self . stmt_let_pat ( e. span ,
2238
2240
None ,
@@ -2251,7 +2253,12 @@ impl<'a> LoweringContext<'a> {
2251
2253
let body_expr = P ( self . expr_block ( body_block, ThinVec :: new ( ) ) ) ;
2252
2254
let body_stmt = respan ( e. span , hir:: StmtExpr ( body_expr, self . next_id ( ) ) ) ;
2253
2255
2254
- let loop_block = P ( self . block_all ( e. span , hir_vec ! [ next_let, match_stmt, pat_let, body_stmt] , None ) ) ;
2256
+ let loop_block = P ( self . block_all ( e. span ,
2257
+ hir_vec ! [ next_let,
2258
+ match_stmt,
2259
+ pat_let,
2260
+ body_stmt] ,
2261
+ None ) ) ;
2255
2262
2256
2263
// `[opt_ident]: loop { ... }`
2257
2264
let loop_expr = hir:: ExprLoop ( loop_block, self . lower_opt_sp_ident ( opt_ident) ,
0 commit comments