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:
commit
e249596d94
|
@ -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 |
|
||||
|
|
Loading…
Reference in New Issue