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
This commit is contained in:
bors 2018-05-23 15:06:27 +00:00
commit e249596d94
1 changed files with 0 additions and 5 deletions

View File

@ -150,8 +150,6 @@ impl<'a, 'gcx, 'tcx> BitDenotation for Borrows<'a, 'gcx, 'tcx> {
panic!("could not find statement at location {:?}");
});
self.kill_loans_out_of_scope_at_location(sets, location);
match stmt.kind {
mir::StatementKind::EndRegion(_) => {
}
@ -253,9 +251,6 @@ impl<'a, 'gcx, 'tcx> BitDenotation for Borrows<'a, 'gcx, 'tcx> {
});
let term = block.terminator();
self.kill_loans_out_of_scope_at_location(sets, location);
match term.kind {
mir::TerminatorKind::Resume |
mir::TerminatorKind::Return |