]> git.lizzy.rs Git - rust.git/commitdiff
CleanEndRegions: use default impl where possible
authorRalf Jung <post@ralfj.de>
Mon, 31 Jul 2017 20:21:10 +0000 (13:21 -0700)
committerRalf Jung <post@ralfj.de>
Mon, 31 Jul 2017 20:21:10 +0000 (13:21 -0700)
src/librustc_mir/transform/clean_end_regions.rs

index d7ec58384a46ed97079ff2c378cc262b5415d30e..f06b88551d11d267967bac3c32f4ba708f7a3b1a 100644 (file)
@@ -65,13 +65,6 @@ fn visit_rvalue(&mut self,
         self.super_rvalue(rvalue, location);
     }
 
-    fn visit_statement(&mut self,
-                       block: BasicBlock,
-                       statement: &Statement<'tcx>,
-                       location: Location) {
-        self.super_statement(block, statement, location);
-    }
-
     fn visit_ty(&mut self, ty: &Ty<'tcx>, _: Lookup) {
         // Gather regions that occur in types
         for re in ty.walk().flat_map(|t| t.regions()) {