diff --git a/src/visitor.rs b/src/visitor.rs index caf67c0683f..86fb1bce9d9 100644 --- a/src/visitor.rs +++ b/src/visitor.rs @@ -50,7 +50,7 @@ fn visit_stmt(&mut self, stmt: &ast::Stmt) { // FIXME(#434): Move this check to somewhere more central, eg Rewrite. if !self.config .file_lines - .contains(&self.codemap.lookup_line_range(stmt.span)) { + .intersects(&self.codemap.lookup_line_range(stmt.span)) { return; }