File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2752,6 +2752,9 @@ fn test_emscripten(target: &str) {
2752
2752
} ) ;
2753
2753
2754
2754
cfg. skip_struct ( move |ty| {
2755
+ if ty. starts_with ( "__c_anonymous_" ) {
2756
+ return true ;
2757
+ }
2755
2758
match ty {
2756
2759
// This is actually a union, not a struct
2757
2760
// FIXME: is this necessary?
@@ -2844,7 +2847,7 @@ fn test_emscripten(target: &str) {
2844
2847
} ) ;
2845
2848
2846
2849
cfg. skip_field ( move |struct_, field| {
2847
- // _sigev_un is an anonymous union
2850
+ // _sigev_un is an anonymous union
2848
2851
( struct_ == "sigevent" && field == "_sigev_un" ) ||
2849
2852
// this is actually a union on linux, so we can't represent it well and
2850
2853
// just insert some padding.
@@ -2856,8 +2859,6 @@ fn test_emscripten(target: &str) {
2856
2859
// musl seems to define this as an *anonymous* bitfield
2857
2860
// FIXME: is this necessary?
2858
2861
( struct_ == "statvfs" && field == "__f_unused" ) ||
2859
- // sigev_notify_thread_id is actually part of a sigev_un union
2860
- ( struct_ == "sigevent" && field == "sigev_notify_thread_id" ) ||
2861
2862
// signalfd had SIGSYS fields added in Linux 4.18, but no libc release has them yet.
2862
2863
( struct_ == "signalfd_siginfo" && ( field == "ssi_addr_lsb" ||
2863
2864
field == "_pad2" ||
You can’t perform that action at this time.
0 commit comments