File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -5647,11 +5647,7 @@ impl<'a> LoweringContext<'a> {
5647
5647
hir_vec ! [ ready_arm, pending_arm] ,
5648
5648
hir:: MatchSource :: AwaitDesugar ,
5649
5649
) ) ;
5650
- hir:: Stmt {
5651
- hir_id : self . next_id ( ) ,
5652
- node : hir:: StmtKind :: Expr ( match_expr) ,
5653
- span,
5654
- }
5650
+ self . stmt ( span, hir:: StmtKind :: Expr ( match_expr) )
5655
5651
} ;
5656
5652
5657
5653
let yield_stmt = {
@@ -5661,11 +5657,7 @@ impl<'a> LoweringContext<'a> {
5661
5657
hir:: ExprKind :: Yield ( P ( unit) ) ,
5662
5658
ThinVec :: new ( ) ,
5663
5659
) ) ;
5664
- hir:: Stmt {
5665
- hir_id : self . next_id ( ) ,
5666
- node : hir:: StmtKind :: Expr ( yield_expr) ,
5667
- span,
5668
- }
5660
+ self . stmt ( span, hir:: StmtKind :: Expr ( yield_expr) )
5669
5661
} ;
5670
5662
5671
5663
let loop_block = P ( self . block_all (
You can’t perform that action at this time.
0 commit comments