File tree 1 file changed +8
-17
lines changed
1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ use self::struct_layout::StructLayoutTracker;
17
17
18
18
use super :: BindgenOptions ;
19
19
20
- use crate :: features:: RustFeatures ;
21
20
use crate :: ir:: analysis:: { HasVtable , Sizedness } ;
22
21
use crate :: ir:: annotations:: FieldAccessorKind ;
23
22
use crate :: ir:: comment;
@@ -2415,22 +2414,14 @@ impl MethodCodegen for Method {
2415
2414
_ => panic ! ( "How in the world?" ) ,
2416
2415
} ;
2417
2416
2418
- match ( signature. abi ( ) , ctx. options ( ) . rust_features ( ) ) {
2419
- (
2420
- Abi :: ThisCall ,
2421
- RustFeatures {
2422
- thiscall_abi : false ,
2423
- ..
2424
- } ,
2425
- ) |
2426
- (
2427
- Abi :: Vectorcall ,
2428
- RustFeatures {
2429
- vectorcall_abi : false ,
2430
- ..
2431
- } ,
2432
- ) => return ,
2433
- _ => { }
2417
+ let supported_abi = match signature. abi ( ) {
2418
+ Abi :: ThisCall => ctx. options ( ) . rust_features ( ) . thiscall_abi ,
2419
+ Abi :: Vectorcall => ctx. options ( ) . rust_features ( ) . vectorcall_abi ,
2420
+ _ => true ,
2421
+ } ;
2422
+
2423
+ if !supported_abi {
2424
+ return ;
2434
2425
}
2435
2426
2436
2427
// Do not generate variadic methods, since rust does not allow
You can’t perform that action at this time.
0 commit comments