Rollup merge of #65116 - spastorino:remove-unneeded-fn, r=oli-obk

Remove unneeded visit_statement definition

r? @oli-obk
This commit is contained in:
Tyler Mandry 2019-10-05 21:55:04 -07:00 committed by GitHub
commit 2f4b47189d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;