File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1422,7 +1422,11 @@ pub fn lower_expr(lctx: &LoweringContext, e: &Expr) -> P<hir::Expr> {
1422
1422
vec ! [ head] )
1423
1423
} ;
1424
1424
1425
- let match_expr = expr_match ( lctx, e. span , into_iter_expr, vec ! [ iter_arm] ) ;
1425
+ let match_expr = expr_match ( lctx,
1426
+ e. span ,
1427
+ into_iter_expr,
1428
+ vec ! [ iter_arm] ,
1429
+ hir:: MatchSource :: ForLoopDesugar ) ;
1426
1430
1427
1431
// `{ let result = ...; result }`
1428
1432
let result_ident = lctx. str_to_ident ( "result" ) ;
@@ -1574,11 +1578,12 @@ fn expr_path(lctx: &LoweringContext, path: hir::Path) -> P<hir::Expr> {
1574
1578
fn expr_match ( lctx : & LoweringContext ,
1575
1579
span : Span ,
1576
1580
arg : P < hir:: Expr > ,
1577
- arms : Vec < hir:: Arm > )
1581
+ arms : Vec < hir:: Arm > ,
1582
+ source : hir:: MatchSource )
1578
1583
-> P < hir:: Expr > {
1579
1584
expr ( lctx,
1580
1585
span,
1581
- hir:: ExprMatch ( arg, arms, hir :: MatchSource :: Normal ) )
1586
+ hir:: ExprMatch ( arg, arms, source ) )
1582
1587
}
1583
1588
1584
1589
fn expr_block ( lctx : & LoweringContext , b : P < hir:: Block > ) -> P < hir:: Expr > {
You can’t perform that action at this time.
0 commit comments