Skip to content

Commit 2f4b471

Browse files
authored
Rollup merge of rust-lang#65116 - spastorino:remove-unneeded-fn, r=oli-obk
Remove unneeded visit_statement definition r? @oli-obk
2 parents 1ac1407 + c5f80aa commit 2f4b471

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)