mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Use block_def_map in body lowering
This commit is contained in:
parent
85e1f0905a
commit
b7be2b1d3c
6 changed files with 40 additions and 26 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue