@@ -1071,7 +1071,6 @@ impl CodeGenerator for Type {
1071
1071
cb. add_attributes ( & AttributeInfo {
1072
1072
name : & name,
1073
1073
kind : AttributeItemKind :: Struct ,
1074
- fn_kind : None ,
1075
1074
} )
1076
1075
} ) ;
1077
1076
attributes. extend (
@@ -2538,7 +2537,6 @@ impl CodeGenerator for CompInfo {
2538
2537
} else {
2539
2538
AttributeItemKind :: Struct
2540
2539
} ,
2541
- fn_kind : None ,
2542
2540
} )
2543
2541
} ) ;
2544
2542
attributes. extend ( custom_attributes. iter ( ) . map ( |s| s. parse ( ) . unwrap ( ) ) ) ;
@@ -3153,8 +3151,7 @@ impl Method {
3153
3151
let custom_attributes = ctx. options ( ) . all_callbacks ( |cb| {
3154
3152
cb. add_attributes ( & AttributeInfo {
3155
3153
name : & canonical_name,
3156
- kind : AttributeItemKind :: Function ,
3157
- fn_kind : Some ( FunctionKind :: Method ( self . kind ( ) ) ) ,
3154
+ kind : AttributeItemKind :: Function ( FunctionKind :: Method ( self . kind ( ) ) ) ,
3158
3155
} )
3159
3156
} ) ;
3160
3157
attrs. extend ( custom_attributes. iter ( ) . map ( |s| s. parse ( ) . unwrap ( ) ) ) ;
@@ -3740,7 +3737,6 @@ impl CodeGenerator for Enum {
3740
3737
cb. add_attributes ( & AttributeInfo {
3741
3738
name : & name,
3742
3739
kind : AttributeItemKind :: Enum ,
3743
- fn_kind : None ,
3744
3740
} )
3745
3741
} ) ;
3746
3742
attrs. extend ( custom_attributes. iter ( ) . map ( |s| s. parse ( ) . unwrap ( ) ) ) ;
@@ -4608,8 +4604,7 @@ impl CodeGenerator for Function {
4608
4604
let custom_attributes = ctx. options ( ) . all_callbacks ( |cb| {
4609
4605
cb. add_attributes ( & AttributeInfo {
4610
4606
name : & canonical_name,
4611
- kind : AttributeItemKind :: Function ,
4612
- fn_kind : Some ( self . kind ( ) ) ,
4607
+ kind : AttributeItemKind :: Function ( self . kind ( ) ) ,
4613
4608
} )
4614
4609
} ) ;
4615
4610
attributes. extend ( custom_attributes. iter ( ) . map ( |s| s. parse ( ) . unwrap ( ) ) ) ;
0 commit comments