Skip to content

Commit 6135461

Browse files
committed
CleanEndRegions: use default impl where possible
1 parent 6ff7c8f commit 6135461

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/librustc_mir/transform/clean_end_regions.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ impl<'tcx> Visitor<'tcx> for GatherBorrowedRegions {
6565
self.super_rvalue(rvalue, location);
6666
}
6767

68-
fn visit_statement(&mut self,
69-
block: BasicBlock,
70-
statement: &Statement<'tcx>,
71-
location: Location) {
72-
self.super_statement(block, statement, location);
73-
}
74-
7568
fn visit_ty(&mut self, ty: &Ty<'tcx>, _: Lookup) {
7669
// Gather regions that occur in types
7770
for re in ty.walk().flat_map(|t| t.regions()) {

0 commit comments

Comments
 (0)