Skip to content

Commit 49d1ce0

Browse files
committed
liveness: Remove unnecessary local variable exit_ln
1 parent 141b91d commit 49d1ce0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/rustc_passes/src/liveness.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1093,9 +1093,8 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
10931093
}
10941094

10951095
hir::ExprKind::Ret(ref o_e) => {
1096-
// ignore succ and subst exit_ln:
1097-
let exit_ln = self.exit_ln;
1098-
self.propagate_through_opt_expr(o_e.as_ref().map(|e| &**e), exit_ln)
1096+
// Ignore succ and subst exit_ln.
1097+
self.propagate_through_opt_expr(o_e.as_ref().map(|e| &**e), self.exit_ln)
10991098
}
11001099

11011100
hir::ExprKind::Break(label, ref opt_expr) => {

0 commit comments

Comments
 (0)