@@ -1365,8 +1365,6 @@ s_no_extra_traits! {
13651365 pub aio_sigevent: sigevent,
13661366 }
13671367
1368- // Can't correctly impl Debug for unions
1369- #[ allow( missing_debug_implementations) ]
13701368 pub union __c_anonymous_sigev_un {
13711369 pub _threadid: crate :: __lwpid_t,
13721370 pub _sigev_thread: __c_anonymous_sigev_thread,
@@ -1721,13 +1719,6 @@ cfg_if! {
17211719 }
17221720 }
17231721 impl Eq for __c_anonymous_cr_pid { }
1724- impl fmt:: Debug for __c_anonymous_cr_pid {
1725- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1726- f. debug_struct( "cr_pid" )
1727- . field( "cr_pid" , unsafe { & self . cr_pid } )
1728- . finish( )
1729- }
1730- }
17311722 impl hash:: Hash for __c_anonymous_cr_pid {
17321723 fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
17331724 unsafe { self . cr_pid. hash( state) } ;
@@ -1883,13 +1874,6 @@ cfg_if! {
18831874 }
18841875 }
18851876 impl Eq for __c_anonymous_elf32_auxv_union { }
1886- impl fmt:: Debug for __c_anonymous_elf32_auxv_union {
1887- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1888- f. debug_struct( "a_val" )
1889- . field( "a_val" , unsafe { & self . a_val } )
1890- . finish( )
1891- }
1892- }
18931877 impl PartialEq for Elf32_Auxinfo {
18941878 fn eq( & self , other: & Elf32_Auxinfo ) -> bool {
18951879 self . a_type == other. a_type && self . a_un == other. a_un
@@ -1927,27 +1911,6 @@ cfg_if! {
19271911 }
19281912 }
19291913 impl Eq for __c_anonymous_ifr_ifru { }
1930- impl fmt:: Debug for __c_anonymous_ifr_ifru {
1931- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1932- f. debug_struct( "ifr_ifru" )
1933- . field( "ifru_addr" , unsafe { & self . ifru_addr } )
1934- . field( "ifru_dstaddr" , unsafe { & self . ifru_dstaddr } )
1935- . field( "ifru_broadaddr" , unsafe { & self . ifru_broadaddr } )
1936- . field( "ifru_buffer" , unsafe { & self . ifru_buffer } )
1937- . field( "ifru_flags" , unsafe { & self . ifru_flags } )
1938- . field( "ifru_index" , unsafe { & self . ifru_index } )
1939- . field( "ifru_jid" , unsafe { & self . ifru_jid } )
1940- . field( "ifru_metric" , unsafe { & self . ifru_metric } )
1941- . field( "ifru_mtu" , unsafe { & self . ifru_mtu } )
1942- . field( "ifru_phys" , unsafe { & self . ifru_phys } )
1943- . field( "ifru_media" , unsafe { & self . ifru_media } )
1944- . field( "ifru_data" , unsafe { & self . ifru_data } )
1945- . field( "ifru_cap" , unsafe { & self . ifru_cap } )
1946- . field( "ifru_fib" , unsafe { & self . ifru_fib } )
1947- . field( "ifru_vlan_pcp" , unsafe { & self . ifru_vlan_pcp } )
1948- . finish( )
1949- }
1950- }
19511914 impl hash:: Hash for __c_anonymous_ifr_ifru {
19521915 fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
19531916 unsafe { self . ifru_addr. hash( state) } ;
@@ -1997,15 +1960,6 @@ cfg_if! {
19971960 }
19981961 }
19991962
2000- impl fmt:: Debug for __c_anonymous_ifc_ifcu {
2001- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
2002- f. debug_struct( "ifc_ifcu" )
2003- . field( "ifcu_buf" , unsafe { & self . ifcu_buf } )
2004- . field( "ifcu_req" , unsafe { & self . ifcu_req } )
2005- . finish( )
2006- }
2007- }
2008-
20091963 impl hash:: Hash for __c_anonymous_ifc_ifcu {
20101964 fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
20111965 unsafe { self . ifcu_buf. hash( state) } ;
@@ -2114,14 +2068,6 @@ cfg_if! {
21142068 }
21152069 }
21162070 impl Eq for __c_anonymous_ifi_epoch { }
2117- impl fmt:: Debug for __c_anonymous_ifi_epoch {
2118- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
2119- f. debug_struct( "__c_anonymous_ifi_epoch" )
2120- . field( "tt" , unsafe { & self . tt } )
2121- . field( "ph" , unsafe { & self . ph } )
2122- . finish( )
2123- }
2124- }
21252071 impl hash:: Hash for __c_anonymous_ifi_epoch {
21262072 fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
21272073 unsafe {
@@ -2137,14 +2083,6 @@ cfg_if! {
21372083 }
21382084 }
21392085 impl Eq for __c_anonymous_ifi_lastchange { }
2140- impl fmt:: Debug for __c_anonymous_ifi_lastchange {
2141- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
2142- f. debug_struct( "__c_anonymous_ifi_lastchange" )
2143- . field( "tv" , unsafe { & self . tv } )
2144- . field( "ph" , unsafe { & self . ph } )
2145- . finish( )
2146- }
2147- }
21482086 impl hash:: Hash for __c_anonymous_ifi_lastchange {
21492087 fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
21502088 unsafe {
0 commit comments