Skip to content

Commit

Permalink
Remove extra calls to kill_loans_out_of_scope_at_location - keep only…
Browse files Browse the repository at this point in the history
… before_statement_effect and before_terminator_effect.
  • Loading branch information
davidtwco committed May 19, 2018
1 parent a722296 commit 280c6fa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/librustc_mir/dataflow/impls/borrows.rs
Expand Up @@ -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(_) => {
}
Expand Down Expand Up @@ -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 |
Expand Down

0 comments on commit 280c6fa

Please sign in to comment.