liveness: Remove unnecessary local variable exit_ln

This commit is contained in:
Tomasz Miąsko 2020-09-26 00:00:00 +00:00
parent 141b91da6c
commit 49d1ce00f3
1 changed files with 2 additions and 3 deletions

View File

@ -1093,9 +1093,8 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
}
hir::ExprKind::Ret(ref o_e) => {
// ignore succ and subst exit_ln:
let exit_ln = self.exit_ln;
self.propagate_through_opt_expr(o_e.as_ref().map(|e| &**e), exit_ln)
// Ignore succ and subst exit_ln.
self.propagate_through_opt_expr(o_e.as_ref().map(|e| &**e), self.exit_ln)
}
hir::ExprKind::Break(label, ref opt_expr) => {