@@ -287,7 +287,7 @@ impl CodeGenerator for Item {
287
287
ctx : & BindgenContext ,
288
288
result : & mut CodegenResult ,
289
289
_extra : & ( ) ) {
290
- if self . hidden ( ctx) || result. seen ( self . id ( ) ) {
290
+ if self . is_hidden ( ctx) || result. seen ( self . id ( ) ) {
291
291
return ;
292
292
}
293
293
@@ -433,7 +433,7 @@ impl CodeGenerator for Type {
433
433
}
434
434
435
435
let mut applicable_template_args = item. applicable_template_args ( ctx) ;
436
- let inner_rust_type = if item. opaque ( ctx) {
436
+ let inner_rust_type = if item. is_opaque ( ctx) {
437
437
applicable_template_args. clear ( ) ;
438
438
// Pray if there's no layout.
439
439
let layout = self . layout ( ctx) . unwrap_or_else ( Layout :: zero) ;
@@ -922,7 +922,7 @@ impl CodeGenerator for CompInfo {
922
922
}
923
923
924
924
// Yeah, sorry about that.
925
- if item. opaque ( ctx) {
925
+ if item. is_opaque ( ctx) {
926
926
fields. clear ( ) ;
927
927
methods. clear ( ) ;
928
928
for i in 0 ..template_args_used. len ( ) {
@@ -1449,7 +1449,7 @@ impl ToRustTy for Type {
1449
1449
}
1450
1450
TypeKind :: ResolvedTypeRef ( inner) => inner. to_rust_ty ( ctx) ,
1451
1451
TypeKind :: Alias ( ref spelling, inner) => {
1452
- if item. opaque ( ctx) {
1452
+ if item. is_opaque ( ctx) {
1453
1453
// Pray if there's no available layout.
1454
1454
let layout = self . layout ( ctx) . unwrap_or_else ( Layout :: zero) ;
1455
1455
BlobTyBuilder :: new ( layout) . build ( )
@@ -1460,7 +1460,7 @@ impl ToRustTy for Type {
1460
1460
}
1461
1461
}
1462
1462
TypeKind :: Comp ( ref info) => {
1463
- if item. opaque ( ctx) || info. has_non_type_template_params ( ) {
1463
+ if item. is_opaque ( ctx) || info. has_non_type_template_params ( ) {
1464
1464
return match self . layout ( ctx) {
1465
1465
Some ( layout) => {
1466
1466
BlobTyBuilder :: new ( layout) . build ( )
@@ -1645,14 +1645,14 @@ impl TypeCollector for Item {
1645
1645
context : & BindgenContext ,
1646
1646
types : & mut ItemSet ,
1647
1647
_extra : & ( ) ) {
1648
- if self . hidden ( context) || types. contains ( & self . id ( ) ) {
1648
+ if self . is_hidden ( context) || types. contains ( & self . id ( ) ) {
1649
1649
return ;
1650
1650
}
1651
1651
1652
1652
match * self . kind ( ) {
1653
1653
ItemKind :: Type ( ref ty) => {
1654
1654
types. insert ( self . id ( ) ) ;
1655
- if !self . opaque ( context) {
1655
+ if !self . is_opaque ( context) {
1656
1656
ty. collect_types ( context, types, self ) ;
1657
1657
}
1658
1658
}
0 commit comments