]> git.lizzy.rs Git - rust.git/commitdiff
Remove visit_body from YieldFinder
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Thu, 20 Jul 2017 03:44:41 +0000 (05:44 +0200)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Fri, 28 Jul 2017 13:47:14 +0000 (15:47 +0200)
src/librustc/middle/region.rs

index ce9f9f1444f2403633558bf5a8cc9f2eec057e4e..63a9731e546ac2dd7c256865591a20a790e35886 100644 (file)
@@ -1150,10 +1150,6 @@ fn nested_visit_map<'this>(&'this mut self) -> NestedVisitorMap<'this, 'tcx> {
         NestedVisitorMap::None
     }
 
-    fn visit_body(&mut self, _body: &'tcx hir::Body) {
-        // Closures don't execute
-    }
-
     fn visit_expr(&mut self, expr: &'tcx hir::Expr) {
         if let hir::ExprYield(..) = expr.node {
             if self.0.is_none() {