diff options
author | Flier Lu <flier.lu@gmail.com> | 2018-09-01 00:55:43 +0800 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-09-10 13:04:28 +0200 |
commit | 83751c8789b027c7b643e2d01768930c35241712 (patch) | |
tree | a22da09a7e9cd5cd3b54f559b1b0b311edab321c /src/codegen/impl_partialeq.rs | |
parent | f5368b3b7d888fc756bae8c22574867579ecabd7 (diff) |
generate type alias for the `block` type
Diffstat (limited to 'src/codegen/impl_partialeq.rs')
-rw-r--r-- | src/codegen/impl_partialeq.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen/impl_partialeq.rs b/src/codegen/impl_partialeq.rs index 66565db6..c8ff6313 100644 --- a/src/codegen/impl_partialeq.rs +++ b/src/codegen/impl_partialeq.rs @@ -88,7 +88,6 @@ fn gen_field(ctx: &BindgenContext, ty_item: &Item, name: &str) -> quote::Tokens TypeKind::Enum(..) | TypeKind::TypeParam | TypeKind::UnresolvedTypeRef(..) | - TypeKind::BlockPointer | TypeKind::Reference(..) | TypeKind::ObjCInterface(..) | TypeKind::ObjCId | @@ -125,7 +124,8 @@ fn gen_field(ctx: &BindgenContext, ty_item: &Item, name: &str) -> quote::Tokens TypeKind::ResolvedTypeRef(t) | TypeKind::TemplateAlias(t, _) | - TypeKind::Alias(t) => { + TypeKind::Alias(t) | + TypeKind::BlockPointer(t) => { let inner_item = ctx.resolve_item(t); gen_field(ctx, inner_item, name) } |