@@ -874,8 +874,6 @@ fn test_solarish(target: &str) {
874
874
875
875
cfg. field_name ( move |struct_, field| {
876
876
match struct_ {
877
- // rust struct uses raw u64, rather than union
878
- "epoll_event" if field == "u64" => "data.u64" . to_string ( ) ,
879
877
// rust struct was committed with typo for Solaris
880
878
"door_arg_t" if field == "dec_num" => "desc_num" . to_string ( ) ,
881
879
"stat" if field. ends_with ( "_nsec" ) => {
@@ -1144,7 +1142,6 @@ fn test_netbsd(target: &str) {
1144
1142
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
1145
1143
s. replace ( "e_nsec" , ".tv_nsec" )
1146
1144
}
1147
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1148
1145
s => s. to_string ( ) ,
1149
1146
}
1150
1147
} ) ;
@@ -1354,7 +1351,6 @@ fn test_dragonflybsd(target: &str) {
1354
1351
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
1355
1352
s. replace ( "e_nsec" , ".tv_nsec" )
1356
1353
}
1357
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1358
1354
// Field is named `type` in C but that is a Rust keyword,
1359
1355
// so these fields are translated to `type_` in the bindings.
1360
1356
"type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
@@ -1735,8 +1731,6 @@ fn test_android(target: &str) {
1735
1731
// Our stat *_nsec fields normally don't actually exist but are part
1736
1732
// of a timeval struct
1737
1733
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => s. to_string ( ) ,
1738
- // FIXME: appears that `epoll_event.data` is an union
1739
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1740
1734
// The following structs have a field called `type` in C,
1741
1735
// but `type` is a Rust keyword, so these fields are translated
1742
1736
// to `type_` in Rust.
@@ -2813,8 +2807,6 @@ fn test_emscripten(target: &str) {
2813
2807
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
2814
2808
s. replace ( "e_nsec" , ".tv_nsec" )
2815
2809
}
2816
- // Rust struct uses raw u64, rather than union
2817
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
2818
2810
s => s. to_string ( ) ,
2819
2811
}
2820
2812
} ) ;
@@ -3555,10 +3547,6 @@ fn test_linux(target: &str) {
3555
3547
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
3556
3548
s. replace ( "e_nsec" , ".tv_nsec" )
3557
3549
}
3558
- // FIXME: epoll_event.data is actually a union in C, but in Rust
3559
- // it is only a u64 because we only expose one field
3560
- // http://man7.org/linux/man-pages/man2/epoll_wait.2.html
3561
- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
3562
3550
// The following structs have a field called `type` in C,
3563
3551
// but `type` is a Rust keyword, so these fields are translated
3564
3552
// to `type_` in Rust.
0 commit comments