Use block_def_map in body lowering

This commit is contained in:
Jonas Schievink 2021-02-01 13:19:55 +01:00
parent 85e1f0905a
commit b7be2b1d3c
6 changed files with 40 additions and 26 deletions

View file

@ -137,7 +137,7 @@ impl<'a> InferenceContext<'a> {
self.coerce_merge_branch(&then_ty, &else_ty)
}
Expr::Block { statements, tail, label } => match label {
Expr::Block { statements, tail, label, id: _ } => match label {
Some(_) => {
let break_ty = self.table.new_type_var();
self.breakables.push(BreakableContext {