Rebase fallout.

This commit is contained in:
Camille GILLOT 2021-09-10 19:57:06 +02:00
parent 11a999e634
commit 7842b80478
5 changed files with 6 additions and 5 deletions

View file

@ -423,6 +423,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
let if_expr = self.expr(span, if_kind, ThinVec::new());
let block = self.block_expr(self.arena.alloc(if_expr));
let span = self.lower_span(span.with_hi(cond.span.hi()));
let opt_label = self.lower_label(opt_label);
hir::ExprKind::Loop(block, opt_label, hir::LoopSource::While, span)
}