@@ -2,7 +2,7 @@ use std::borrow::Cow;
22use std:: collections:: BTreeMap ;
33
44use rustc_errors:: { Applicability , Diag } ;
5- use rustc_hir:: intravisit:: { Visitor , VisitorExt , walk_ty , walk_body, walk_expr} ;
5+ use rustc_hir:: intravisit:: { Visitor , VisitorExt , walk_body, walk_expr, walk_ty } ;
66use rustc_hir:: { self as hir, AmbigArg , Body , Expr , ExprKind , GenericArg , Item , ItemKind , QPath , TyKind } ;
77use rustc_hir_analysis:: lower_ty;
88use rustc_lint:: { LateContext , LateLintPass } ;
@@ -111,7 +111,7 @@ impl<'tcx> LateLintPass<'tcx> for ImplicitHasher {
111111 match item. kind {
112112 ItemKind :: Impl ( impl_) => {
113113 let mut vis = ImplicitHasherTypeVisitor :: new ( cx) ;
114- vis. visit_unambig_ty ( impl_. self_ty ) ;
114+ vis. visit_ty_unambig ( impl_. self_ty ) ;
115115
116116 for target in & vis. found {
117117 if !item. span . eq_ctxt ( target. span ( ) ) {
@@ -158,7 +158,7 @@ impl<'tcx> LateLintPass<'tcx> for ImplicitHasher {
158158
159159 for ty in sig. decl . inputs {
160160 let mut vis = ImplicitHasherTypeVisitor :: new ( cx) ;
161- vis. visit_unambig_ty ( ty) ;
161+ vis. visit_ty_unambig ( ty) ;
162162
163163 for target in & vis. found {
164164 if generics. span . from_expansion ( ) {
0 commit comments