@@ -906,8 +906,6 @@ fn test_solarish(target: &str) {
906906
907907 cfg. field_name ( move |struct_, field| {
908908 match struct_ {
909- // rust struct uses raw u64, rather than union
910- "epoll_event" if field == "u64" => "data.u64" . to_string ( ) ,
911909 // rust struct was committed with typo for Solaris
912910 "door_arg_t" if field == "dec_num" => "desc_num" . to_string ( ) ,
913911 "stat" if field. ends_with ( "_nsec" ) => {
@@ -1176,7 +1174,6 @@ fn test_netbsd(target: &str) {
11761174 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
11771175 s. replace ( "e_nsec" , ".tv_nsec" )
11781176 }
1179- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
11801177 s => s. to_string ( ) ,
11811178 }
11821179 } ) ;
@@ -1386,7 +1383,6 @@ fn test_dragonflybsd(target: &str) {
13861383 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
13871384 s. replace ( "e_nsec" , ".tv_nsec" )
13881385 }
1389- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
13901386 // Field is named `type` in C but that is a Rust keyword,
13911387 // so these fields are translated to `type_` in the bindings.
13921388 "type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
@@ -1766,8 +1762,6 @@ fn test_android(target: &str) {
17661762 // Our stat *_nsec fields normally don't actually exist but are part
17671763 // of a timeval struct
17681764 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => s. to_string ( ) ,
1769- // FIXME: appears that `epoll_event.data` is an union
1770- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
17711765 // The following structs have a field called `type` in C,
17721766 // but `type` is a Rust keyword, so these fields are translated
17731767 // to `type_` in Rust.
@@ -2848,8 +2842,6 @@ fn test_emscripten(target: &str) {
28482842 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
28492843 s. replace ( "e_nsec" , ".tv_nsec" )
28502844 }
2851- // Rust struct uses raw u64, rather than union
2852- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
28532845 s => s. to_string ( ) ,
28542846 }
28552847 } ) ;
@@ -3585,10 +3577,6 @@ fn test_linux(target: &str) {
35853577 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
35863578 s. replace ( "e_nsec" , ".tv_nsec" )
35873579 }
3588- // FIXME(linux): epoll_event.data is actually a union in C, but in Rust
3589- // it is only a u64 because we only expose one field
3590- // http://man7.org/linux/man-pages/man2/epoll_wait.2.html
3591- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
35923580 // The following structs have a field called `type` in C,
35933581 // but `type` is a Rust keyword, so these fields are translated
35943582 // to `type_` in Rust.
0 commit comments