Skip to content

Commit

Permalink
Remove unneeded visit_statement definition
Browse files Browse the repository at this point in the history
visit_statement default definition does just this, there's no need to
redefine it.
  • Loading branch information
spastorino committed Oct 4, 2019
1 parent 0221e26 commit c5f80aa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/librustc_mir/transform/erase_regions.rs
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 c5f80aa

Please sign in to comment.