@@ -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,
@@ -1883,13 +1881,6 @@ cfg_if! {
18831881 }
18841882 }
18851883 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- }
18931884 impl PartialEq for Elf32_Auxinfo {
18941885 fn eq( & self , other: & Elf32_Auxinfo ) -> bool {
18951886 self . a_type == other. a_type && self . a_un == other. a_un
@@ -1927,27 +1918,6 @@ cfg_if! {
19271918 }
19281919 }
19291920 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- }
19511921 impl hash:: Hash for __c_anonymous_ifr_ifru {
19521922 fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
19531923 unsafe { self . ifru_addr. hash( state) } ;
@@ -1997,15 +1967,6 @@ cfg_if! {
19971967 }
19981968 }
19991969
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-
20091970 impl hash:: Hash for __c_anonymous_ifc_ifcu {
20101971 fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
20111972 unsafe { self . ifcu_buf. hash( state) } ;
@@ -2114,14 +2075,6 @@ cfg_if! {
21142075 }
21152076 }
21162077 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- }
21252078 impl hash:: Hash for __c_anonymous_ifi_epoch {
21262079 fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
21272080 unsafe {
@@ -2137,14 +2090,6 @@ cfg_if! {
21372090 }
21382091 }
21392092 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- }
21482093 impl hash:: Hash for __c_anonymous_ifi_lastchange {
21492094 fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
21502095 unsafe {
0 commit comments