Remove unneeded visit_statement definition
visit_statement default definition does just this, there's no need to redefine it.
This commit is contained in:
parent
0221e26562
commit
c5f80aa508
1 changed files with 0 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue