Skip to content

Commit c5f80aa

Browse files
committed
Remove unneeded visit_statement definition
visit_statement default definition does just this, there's no need to redefine it.
1 parent 0221e26 commit c5f80aa

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/librustc_mir/transform/erase_regions.rs

-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ impl MutVisitor<'tcx> for EraseRegionsVisitor<'tcx> {
3939
fn visit_substs(&mut self, substs: &mut SubstsRef<'tcx>, _: Location) {
4040
*substs = self.tcx.erase_regions(substs);
4141
}
42-
43-
fn visit_statement(&mut self,
44-
statement: &mut Statement<'tcx>,
45-
location: Location) {
46-
self.super_statement(statement, location);
47-
}
4842
}
4943

5044
pub struct EraseRegions;

0 commit comments

Comments
 (0)