Skip to content

Commit

Permalink
Rollup merge of rust-lang#65116 - spastorino:remove-unneeded-fn, r=ol…
Browse files Browse the repository at this point in the history
…i-obk

Remove unneeded visit_statement definition

r? @oli-obk
  • Loading branch information
tmandry committed Oct 5, 2019
2 parents 8739d25 + c5f80aa commit b0aef5e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/librustc_mir/transform/erase_regions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ impl MutVisitor<'tcx> for EraseRegionsVisitor<'tcx> {
fn visit_substs(&mut self, substs: &mut SubstsRef<'tcx>, _: Location) {
*substs = self.tcx.erase_regions(substs);
}

fn visit_statement(&mut self,
statement: &mut Statement<'tcx>,
location: Location) {
self.super_statement(statement, location);
}
}

pub struct EraseRegions;
Expand Down

0 comments on commit b0aef5e

Please sign in to comment.