@@ -856,8 +856,6 @@ fn test_solarish(target: &str) {
856856
857857 cfg. field_name ( move |struct_, field| {
858858 match struct_ {
859- // rust struct uses raw u64, rather than union
860- "epoll_event" if field == "u64" => "data.u64" . to_string ( ) ,
861859 // rust struct was committed with typo for Solaris
862860 "door_arg_t" if field == "dec_num" => "desc_num" . to_string ( ) ,
863861 "stat" if field. ends_with ( "_nsec" ) => {
@@ -1114,7 +1112,6 @@ fn test_netbsd(target: &str) {
11141112 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
11151113 s. replace ( "e_nsec" , ".tv_nsec" )
11161114 }
1117- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
11181115 s => s. to_string ( ) ,
11191116 }
11201117 } ) ;
@@ -1323,7 +1320,6 @@ fn test_dragonflybsd(target: &str) {
13231320 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
13241321 s. replace ( "e_nsec" , ".tv_nsec" )
13251322 }
1326- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
13271323 // Field is named `type` in C but that is a Rust keyword,
13281324 // so these fields are translated to `type_` in the bindings.
13291325 "type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
@@ -1684,8 +1680,6 @@ fn test_android(target: &str) {
16841680 // Our stat *_nsec fields normally don't actually exist but are part
16851681 // of a timeval struct
16861682 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => s. to_string ( ) ,
1687- // FIXME: appears that `epoll_event.data` is an union
1688- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
16891683 // The following structs have a field called `type` in C,
16901684 // but `type` is a Rust keyword, so these fields are translated
16911685 // to `type_` in Rust.
@@ -2756,8 +2750,6 @@ fn test_emscripten(target: &str) {
27562750 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
27572751 s. replace ( "e_nsec" , ".tv_nsec" )
27582752 }
2759- // FIXME: appears that `epoll_event.data` is an union
2760- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
27612753 s => s. to_string ( ) ,
27622754 }
27632755 } ) ;
@@ -3508,10 +3500,6 @@ fn test_linux(target: &str) {
35083500 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
35093501 s. replace ( "e_nsec" , ".tv_nsec" )
35103502 }
3511- // FIXME: epoll_event.data is actually a union in C, but in Rust
3512- // it is only a u64 because we only expose one field
3513- // http://man7.org/linux/man-pages/man2/epoll_wait.2.html
3514- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
35153503 // The following structs have a field called `type` in C,
35163504 // but `type` is a Rust keyword, so these fields are translated
35173505 // to `type_` in Rust.
0 commit comments