@@ -380,7 +380,7 @@ pub trait Visitor<'v>: Sized {
380
380
///
381
381
/// The [`Visitor::visit_infer`] method should be overridden in order to handle infer vars.
382
382
fn visit_const_arg ( & mut self , c : & ' v ConstArg < ' v , AmbigArg > ) -> Self :: Result {
383
- walk_ambig_const_arg ( self , c)
383
+ walk_const_arg ( self , c)
384
384
}
385
385
386
386
#[ allow( unused_variables) ]
@@ -525,7 +525,7 @@ pub trait VisitorExt<'v>: Visitor<'v> {
525
525
/// Named `visit_const_arg_unambig` instead of `visit_unambig_const_arg` to aid in
526
526
/// discovery by IDes when `v.visit_const_arg` is written.
527
527
fn visit_const_arg_unambig ( & mut self , c : & ' v ConstArg < ' v > ) -> Self :: Result {
528
- walk_const_arg ( self , c)
528
+ walk_unambig_const_arg ( self , c)
529
529
}
530
530
}
531
531
impl < ' v , V : Visitor < ' v > > VisitorExt < ' v > for V { }
@@ -1038,7 +1038,7 @@ pub fn walk_ty<'v, V: Visitor<'v>>(visitor: &mut V, typ: &'v Ty<'v, AmbigArg>) -
1038
1038
V :: Result :: output ( )
1039
1039
}
1040
1040
1041
- pub fn walk_const_arg < ' v , V : Visitor < ' v > > (
1041
+ pub fn walk_unambig_const_arg < ' v , V : Visitor < ' v > > (
1042
1042
visitor : & mut V ,
1043
1043
const_arg : & ' v ConstArg < ' v > ,
1044
1044
) -> V :: Result {
@@ -1052,7 +1052,7 @@ pub fn walk_const_arg<'v, V: Visitor<'v>>(
1052
1052
}
1053
1053
}
1054
1054
1055
- pub fn walk_ambig_const_arg < ' v , V : Visitor < ' v > > (
1055
+ pub fn walk_const_arg < ' v , V : Visitor < ' v > > (
1056
1056
visitor : & mut V ,
1057
1057
const_arg : & ' v ConstArg < ' v , AmbigArg > ,
1058
1058
) -> V :: Result {
0 commit comments