Skip to content

Commit e249596

Browse files
committed
Auto merge of #50891 - davidtwco:nll-kill-loans-out-of-scope-at-location-reduce-calls, r=pnkfelix
Remove extra calls to kill_loans_out_of_scope_at_location. r? @nikomatsakis
2 parents 1962a70 + 280c6fa commit e249596

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/librustc_mir/dataflow/impls/borrows.rs

-5
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ impl<'a, 'gcx, 'tcx> BitDenotation for Borrows<'a, 'gcx, 'tcx> {
150150
panic!("could not find statement at location {:?}");
151151
});
152152

153-
self.kill_loans_out_of_scope_at_location(sets, location);
154-
155153
match stmt.kind {
156154
mir::StatementKind::EndRegion(_) => {
157155
}
@@ -253,9 +251,6 @@ impl<'a, 'gcx, 'tcx> BitDenotation for Borrows<'a, 'gcx, 'tcx> {
253251
});
254252

255253
let term = block.terminator();
256-
self.kill_loans_out_of_scope_at_location(sets, location);
257-
258-
259254
match term.kind {
260255
mir::TerminatorKind::Resume |
261256
mir::TerminatorKind::Return |

0 commit comments

Comments
 (0)