We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e19ad45 + 362431b commit 5490cc1Copy full SHA for 5490cc1
src/librustc/hir/lowering.rs
@@ -5647,11 +5647,7 @@ impl<'a> LoweringContext<'a> {
5647
hir_vec![ready_arm, pending_arm],
5648
hir::MatchSource::AwaitDesugar,
5649
));
5650
- hir::Stmt {
5651
- hir_id: self.next_id(),
5652
- node: hir::StmtKind::Expr(match_expr),
5653
- span,
5654
- }
+ self.stmt(span, hir::StmtKind::Expr(match_expr))
5655
};
5656
5657
let yield_stmt = {
@@ -5661,11 +5657,7 @@ impl<'a> LoweringContext<'a> {
5661
hir::ExprKind::Yield(P(unit)),
5662
5658
ThinVec::new(),
5663
5659
5664
5665
5666
- node: hir::StmtKind::Expr(yield_expr),
5667
5668
5660
+ self.stmt(span, hir::StmtKind::Expr(yield_expr))
5669
5670
5671
let loop_block = P(self.block_all(
0 commit comments