Skip to content

Commit f4b7735

Browse files
committed
Rename hir const arg walking functions
1 parent 55d4364 commit f4b7735

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/rustc_ast_lowering/src/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl<'a, 'hir> Visitor<'hir> for NodeCollector<'a, 'hir> {
311311
);
312312

313313
self.with_parent(const_arg.hir_id, |this| {
314-
intravisit::walk_ambig_const_arg(this, const_arg);
314+
intravisit::walk_const_arg(this, const_arg);
315315
});
316316
}
317317

compiler/rustc_hir/src/intravisit.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ pub trait Visitor<'v>: Sized {
380380
///
381381
/// The [`Visitor::visit_infer`] method should be overridden in order to handle infer vars.
382382
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)
384384
}
385385

386386
#[allow(unused_variables)]
@@ -525,7 +525,7 @@ pub trait VisitorExt<'v>: Visitor<'v> {
525525
/// Named `visit_const_arg_unambig` instead of `visit_unambig_const_arg` to aid in
526526
/// discovery by IDes when `v.visit_const_arg` is written.
527527
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)
529529
}
530530
}
531531
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>) -
10381038
V::Result::output()
10391039
}
10401040

1041-
pub fn walk_const_arg<'v, V: Visitor<'v>>(
1041+
pub fn walk_unambig_const_arg<'v, V: Visitor<'v>>(
10421042
visitor: &mut V,
10431043
const_arg: &'v ConstArg<'v>,
10441044
) -> V::Result {
@@ -1052,7 +1052,7 @@ pub fn walk_const_arg<'v, V: Visitor<'v>>(
10521052
}
10531053
}
10541054

1055-
pub fn walk_ambig_const_arg<'v, V: Visitor<'v>>(
1055+
pub fn walk_const_arg<'v, V: Visitor<'v>>(
10561056
visitor: &mut V,
10571057
const_arg: &'v ConstArg<'v, AmbigArg>,
10581058
) -> V::Result {

0 commit comments

Comments
 (0)