@@ -354,7 +354,7 @@ pub trait Visitor<'v>: Sized {
354354 }
355355
356356 fn visit_ty ( & mut self , t : & ' v Ty < ' v , AmbigArg > ) -> Self :: Result {
357- walk_ambig_ty ( self , t)
357+ walk_ty ( self , t)
358358 }
359359 fn visit_const_arg ( & mut self , c : & ' v ConstArg < ' v , AmbigArg > ) -> Self :: Result {
360360 walk_ambig_const_arg ( self , c)
@@ -496,7 +496,7 @@ pub trait Visitor<'v>: Sized {
496496
497497pub trait VisitorExt < ' v > : Visitor < ' v > {
498498 fn visit_unambig_ty ( & mut self , t : & ' v Ty < ' v > ) -> Self :: Result {
499- walk_ty ( self , t)
499+ walk_unambig_ty ( self , t)
500500 }
501501 fn visit_unambig_const_arg ( & mut self , c : & ' v ConstArg < ' v > ) -> Self :: Result {
502502 walk_const_arg ( self , c)
@@ -900,7 +900,7 @@ pub fn walk_generic_arg<'v, V: Visitor<'v>>(
900900 }
901901}
902902
903- pub fn walk_ty < ' v , V : Visitor < ' v > > ( visitor : & mut V , typ : & ' v Ty < ' v > ) -> V :: Result {
903+ pub fn walk_unambig_ty < ' v , V : Visitor < ' v > > ( visitor : & mut V , typ : & ' v Ty < ' v > ) -> V :: Result {
904904 if let TyKind :: Infer ( ( ) ) = typ. kind {
905905 try_visit ! ( visitor. visit_id( typ. hir_id) ) ;
906906 return visitor. visit_shared_ty_const ( typ. hir_id , typ. span , InferKind :: Ty ( typ) ) ;
@@ -909,7 +909,7 @@ pub fn walk_ty<'v, V: Visitor<'v>>(visitor: &mut V, typ: &'v Ty<'v>) -> V::Resul
909909 visitor. visit_ty ( typ. as_ambig_ty ( ) )
910910}
911911
912- pub fn walk_ambig_ty < ' v , V : Visitor < ' v > > ( visitor : & mut V , typ : & ' v Ty < ' v , AmbigArg > ) -> V :: Result {
912+ pub fn walk_ty < ' v , V : Visitor < ' v > > ( visitor : & mut V , typ : & ' v Ty < ' v , AmbigArg > ) -> V :: Result {
913913 try_visit ! ( visitor. visit_id( typ. hir_id) ) ;
914914
915915 match typ. kind {
0 commit comments