Remove unneeded visit_statement definition

visit_statement default definition does just this, there's no need to
redefine it.
This commit is contained in:
Santiago Pastorino 2019-10-04 18:10:19 -03:00
parent 0221e26562
commit c5f80aa508
No known key found for this signature in database
GPG key ID: 88C941CDA1D46432

View file

@ -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;