@@ -973,8 +973,6 @@ fn test_netbsd(target: &str) {
973973 } ) ;
974974
975975 cfg. skip_field_type ( move |struct_, field| {
976- // This is a weird union, don't check the type.
977- ( struct_ == "ifaddrs" && field == "ifa_ifu" ) ||
978976 // sighandler_t type is super weird
979977 ( struct_ == "sigaction" && field == "sa_sigaction" ) ||
980978 // aio_buf is "volatile void*" and Rust doesn't understand volatile
@@ -1174,8 +1172,6 @@ fn test_dragonflybsd(target: &str) {
11741172 } ) ;
11751173
11761174 cfg. skip_field_type ( move |struct_, field| {
1177- // This is a weird union, don't check the type.
1178- ( struct_ == "ifaddrs" && field == "ifa_ifu" ) ||
11791175 // sighandler_t type is super weird
11801176 ( struct_ == "sigaction" && field == "sa_sigaction" ) ||
11811177 // aio_buf is "volatile void*" and Rust doesn't understand volatile
@@ -1506,11 +1502,6 @@ fn test_android(target: &str) {
15061502 }
15071503 } ) ;
15081504
1509- cfg. skip_field_type ( move |struct_, field| {
1510- // This is a weird union, don't check the type.
1511- struct_ == "ifaddrs" && field == "ifa_ifu"
1512- } ) ;
1513-
15141505 cfg. skip_field ( move |struct_, field| {
15151506 // this is actually a union on linux, so we can't represent it well and
15161507 // just insert some padding.
@@ -1986,6 +1977,9 @@ fn test_emscripten(target: &str) {
19861977 } ) ;
19871978
19881979 cfg. skip_struct ( move |ty| {
1980+ if ty. starts_with ( "__c_anonymous_" ) {
1981+ return true ;
1982+ }
19891983 match ty {
19901984 // FIXME: It was removed in
19911985 // emscripten-core/emscripten@953e414
@@ -2029,9 +2023,6 @@ fn test_emscripten(target: &str) {
20292023 } ) ;
20302024
20312025 cfg. skip_field_type ( move |struct_, field| {
2032- // This is a weird union, don't check the type.
2033- // FIXME: is this necessary?
2034- ( struct_ == "ifaddrs" && field == "ifa_ifu" ) ||
20352026 // sighandler_t type is super weird
20362027 // FIXME: is this necessary?
20372028 ( struct_ == "sigaction" && field == "sa_sigaction" ) ||
0 commit comments