@@ -874,8 +874,6 @@ fn test_solarish(target: &str) {
874874
875875 cfg. field_name ( move |struct_, field| {
876876 match struct_ {
877- // rust struct uses raw u64, rather than union
878- "epoll_event" if field == "u64" => "data.u64" . to_string ( ) ,
879877 // rust struct was committed with typo for Solaris
880878 "door_arg_t" if field == "dec_num" => "desc_num" . to_string ( ) ,
881879 "stat" if field. ends_with ( "_nsec" ) => {
@@ -1144,7 +1142,6 @@ fn test_netbsd(target: &str) {
11441142 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
11451143 s. replace ( "e_nsec" , ".tv_nsec" )
11461144 }
1147- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
11481145 s => s. to_string ( ) ,
11491146 }
11501147 } ) ;
@@ -1354,7 +1351,6 @@ fn test_dragonflybsd(target: &str) {
13541351 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
13551352 s. replace ( "e_nsec" , ".tv_nsec" )
13561353 }
1357- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
13581354 // Field is named `type` in C but that is a Rust keyword,
13591355 // so these fields are translated to `type_` in the bindings.
13601356 "type_" if struct_ == "rtprio" => "type" . to_string ( ) ,
@@ -1735,8 +1731,6 @@ fn test_android(target: &str) {
17351731 // Our stat *_nsec fields normally don't actually exist but are part
17361732 // of a timeval struct
17371733 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 ( ) ,
17401734 // The following structs have a field called `type` in C,
17411735 // but `type` is a Rust keyword, so these fields are translated
17421736 // to `type_` in Rust.
@@ -2813,8 +2807,6 @@ fn test_emscripten(target: &str) {
28132807 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
28142808 s. replace ( "e_nsec" , ".tv_nsec" )
28152809 }
2816- // Rust struct uses raw u64, rather than union
2817- "u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
28182810 s => s. to_string ( ) ,
28192811 }
28202812 } ) ;
@@ -3555,10 +3547,6 @@ fn test_linux(target: &str) {
35553547 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
35563548 s. replace ( "e_nsec" , ".tv_nsec" )
35573549 }
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 ( ) ,
35623550 // The following structs have a field called `type` in C,
35633551 // but `type` is a Rust keyword, so these fields are translated
35643552 // to `type_` in Rust.
0 commit comments