@@ -976,8 +976,6 @@ fn test_netbsd(target: &str) {
976
976
} ) ;
977
977
978
978
cfg. skip_field_type ( move |struct_, field| {
979
- // This is a weird union, don't check the type.
980
- ( struct_ == "ifaddrs" && field == "ifa_ifu" ) ||
981
979
// sighandler_t type is super weird
982
980
( struct_ == "sigaction" && field == "sa_sigaction" ) ||
983
981
// aio_buf is "volatile void*" and Rust doesn't understand volatile
@@ -1178,8 +1176,6 @@ fn test_dragonflybsd(target: &str) {
1178
1176
} ) ;
1179
1177
1180
1178
cfg. skip_field_type ( move |struct_, field| {
1181
- // This is a weird union, don't check the type.
1182
- ( struct_ == "ifaddrs" && field == "ifa_ifu" ) ||
1183
1179
// sighandler_t type is super weird
1184
1180
( struct_ == "sigaction" && field == "sa_sigaction" ) ||
1185
1181
// aio_buf is "volatile void*" and Rust doesn't understand volatile
@@ -1510,11 +1506,6 @@ fn test_android(target: &str) {
1510
1506
}
1511
1507
} ) ;
1512
1508
1513
- cfg. skip_field_type ( move |struct_, field| {
1514
- // This is a weird union, don't check the type.
1515
- struct_ == "ifaddrs" && field == "ifa_ifu"
1516
- } ) ;
1517
-
1518
1509
cfg. skip_field ( move |struct_, field| {
1519
1510
// this is actually a union on linux, so we can't represent it well and
1520
1511
// just insert some padding.
@@ -1991,6 +1982,9 @@ fn test_emscripten(target: &str) {
1991
1982
} ) ;
1992
1983
1993
1984
cfg. skip_struct ( move |ty| {
1985
+ if ty. starts_with ( "__c_anonymous_" ) {
1986
+ return true ;
1987
+ }
1994
1988
match ty {
1995
1989
// FIXME: It was removed in
1996
1990
// emscripten-core/emscripten@953e414
@@ -2034,9 +2028,6 @@ fn test_emscripten(target: &str) {
2034
2028
} ) ;
2035
2029
2036
2030
cfg. skip_field_type ( move |struct_, field| {
2037
- // This is a weird union, don't check the type.
2038
- // FIXME: is this necessary?
2039
- ( struct_ == "ifaddrs" && field == "ifa_ifu" ) ||
2040
2031
// sighandler_t type is super weird
2041
2032
// FIXME: is this necessary?
2042
2033
( struct_ == "sigaction" && field == "sa_sigaction" ) ||
0 commit comments