Skip to content

Commit 69a0edf

Browse files
committed
Apply local effects for flow_init in constraint generation so we get the inits bits
1 parent 581b197 commit 69a0edf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_mir/borrow_check/nll/constraint_generation.rs

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ impl<'cx, 'cg, 'gcx, 'tcx> ConstraintGeneration<'cx, 'cg, 'gcx, 'tcx> {
119119
debug!("add_liveness_constraints: reconstruct_statement_effect from {:#?}", location);
120120
self.flow_inits.reconstruct_statement_effect(location);
121121
}
122+
self.flow_inits.apply_local_effect();
122123
}
123124
}
124125
}

0 commit comments

Comments
 (0)