]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/types.rs
Port a bunch of code new-visitor; all of these ports were
[rust.git] / src / librustc_lint / types.rs
index abbb733d8848da10d40941142d93e820d8e7dabc..a1d029025b2fa8c09680dc4ca93f8e7c7462ff77 100644 (file)
@@ -28,7 +28,7 @@
 use syntax::ast::{TyIs, TyUs, TyI8, TyU8, TyI16, TyU16, TyI32, TyU32, TyI64, TyU64};
 
 use rustc_front::hir;
-use rustc_front::visit::{self, Visitor};
+use rustc_front::intravisit::{self, Visitor};
 use rustc_front::util::is_shift_binop;
 
 declare_lint! {
@@ -626,7 +626,7 @@ fn visit_ty(&mut self, ty: &hir::Ty) {
                     "found Rust tuple type in foreign module; \
                      consider using a struct instead`")
             }
-            _ => visit::walk_ty(self, ty)
+            _ => intravisit::walk_ty(self, ty)
         }
     }
 }