add eq constraints on associated constants
This commit is contained in:
parent
a34c079752
commit
0765999622
23 changed files with 195 additions and 113 deletions
|
@ -2136,6 +2136,8 @@ pub enum TypeBindingKind<'hir> {
|
|||
Constraint { bounds: &'hir [GenericBound<'hir>] },
|
||||
/// E.g., `Foo<Bar = ()>`.
|
||||
Equality { ty: &'hir Ty<'hir> },
|
||||
/// E.g., `Foo<N = 3>`.
|
||||
Const { c: AnonConst },
|
||||
}
|
||||
|
||||
impl TypeBinding<'_> {
|
||||
|
|
|
@ -827,9 +827,8 @@ pub fn walk_assoc_type_binding<'v, V: Visitor<'v>>(
|
|||
visitor.visit_ident(type_binding.ident);
|
||||
visitor.visit_generic_args(type_binding.span, type_binding.gen_args);
|
||||
match type_binding.kind {
|
||||
TypeBindingKind::Equality { ref ty } => {
|
||||
visitor.visit_ty(ty);
|
||||
}
|
||||
TypeBindingKind::Equality { ref ty } => visitor.visit_ty(ty),
|
||||
TypeBindingKind::Const { ref c } => visitor.visit_anon_const(c),
|
||||
TypeBindingKind::Constraint { bounds } => {
|
||||
walk_list!(visitor, visit_param_bound, bounds);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue