@@ -2,7 +2,7 @@ use std::borrow::Cow;
2
2
use std:: collections:: BTreeMap ;
3
3
4
4
use 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 } ;
6
6
use rustc_hir:: { self as hir, AmbigArg , Body , Expr , ExprKind , GenericArg , Item , ItemKind , QPath , TyKind } ;
7
7
use rustc_hir_analysis:: lower_ty;
8
8
use rustc_lint:: { LateContext , LateLintPass } ;
@@ -111,7 +111,7 @@ impl<'tcx> LateLintPass<'tcx> for ImplicitHasher {
111
111
match item. kind {
112
112
ItemKind :: Impl ( impl_) => {
113
113
let mut vis = ImplicitHasherTypeVisitor :: new ( cx) ;
114
- vis. visit_unambig_ty ( impl_. self_ty ) ;
114
+ vis. visit_ty_unambig ( impl_. self_ty ) ;
115
115
116
116
for target in & vis. found {
117
117
if !item. span . eq_ctxt ( target. span ( ) ) {
@@ -158,7 +158,7 @@ impl<'tcx> LateLintPass<'tcx> for ImplicitHasher {
158
158
159
159
for ty in sig. decl . inputs {
160
160
let mut vis = ImplicitHasherTypeVisitor :: new ( cx) ;
161
- vis. visit_unambig_ty ( ty) ;
161
+ vis. visit_ty_unambig ( ty) ;
162
162
163
163
for target in & vis. found {
164
164
if generics. span . from_expansion ( ) {
0 commit comments