Skip to content

Commit fdaf603

Browse files
committed
add generic args to hir::TypeBinding
1 parent e708cbd commit fdaf603

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_hir/src/hir.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,7 @@ pub struct TypeBinding<'hir> {
20152015
pub hir_id: HirId,
20162016
#[stable_hasher(project(name))]
20172017
pub ident: Ident,
2018+
pub gen_args: &'hir GenericArgs<'hir>,
20182019
pub kind: TypeBindingKind<'hir>,
20192020
pub span: Span,
20202021
}

compiler/rustc_hir/src/intravisit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ pub fn walk_assoc_type_binding<'v, V: Visitor<'v>>(
781781
) {
782782
visitor.visit_id(type_binding.hir_id);
783783
visitor.visit_ident(type_binding.ident);
784+
visitor.visit_generic_args(type_binding.span, type_binding.gen_args);
784785
match type_binding.kind {
785786
TypeBindingKind::Equality { ref ty } => {
786787
visitor.visit_ty(ty);

0 commit comments

Comments
 (0)