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