diff options
| author | b-naber <bn263@gmx.de> | 2020-11-30 09:23:00 +0100 |
|---|---|---|
| committer | b-naber <bn263@gmx.de> | 2021-02-04 16:20:56 +0100 |
| commit | fdaf603102943392e889ea203adb8fa8f4a8d7a7 (patch) | |
| tree | 409a0c068caf50b2af5900b322facc6ffbef5b12 | |
| parent | e708cbd91c9cae4426d69270248362b423324556 (diff) | |
| download | rust-fdaf603102943392e889ea203adb8fa8f4a8d7a7.tar.gz rust-fdaf603102943392e889ea203adb8fa8f4a8d7a7.zip | |
add generic args to hir::TypeBinding
| -rw-r--r-- | compiler/rustc_hir/src/hir.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_hir/src/intravisit.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index 1c16dc02667..a0b2e0a8861 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -2015,6 +2015,7 @@ pub struct TypeBinding<'hir> { pub hir_id: HirId, #[stable_hasher(project(name))] pub ident: Ident, + pub gen_args: &'hir GenericArgs<'hir>, pub kind: TypeBindingKind<'hir>, pub span: Span, } diff --git a/compiler/rustc_hir/src/intravisit.rs b/compiler/rustc_hir/src/intravisit.rs index 6c1bee2335a..f8b3f0d9b6e 100644 --- a/compiler/rustc_hir/src/intravisit.rs +++ b/compiler/rustc_hir/src/intravisit.rs @@ -781,6 +781,7 @@ pub fn walk_assoc_type_binding<'v, V: Visitor<'v>>( ) { visitor.visit_id(type_binding.hir_id); 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); |
