@@ -1365,8 +1365,6 @@ s_no_extra_traits! {
1365
1365
pub aio_sigevent: sigevent,
1366
1366
}
1367
1367
1368
- // Can't correctly impl Debug for unions
1369
- #[ allow( missing_debug_implementations) ]
1370
1368
pub union __c_anonymous_sigev_un {
1371
1369
pub _threadid: crate :: __lwpid_t,
1372
1370
pub _sigev_thread: __c_anonymous_sigev_thread,
@@ -1721,13 +1719,6 @@ cfg_if! {
1721
1719
}
1722
1720
}
1723
1721
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
- }
1731
1722
impl hash:: Hash for __c_anonymous_cr_pid {
1732
1723
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1733
1724
unsafe { self . cr_pid. hash( state) } ;
@@ -1883,13 +1874,6 @@ cfg_if! {
1883
1874
}
1884
1875
}
1885
1876
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
- }
1893
1877
impl PartialEq for Elf32_Auxinfo {
1894
1878
fn eq( & self , other: & Elf32_Auxinfo ) -> bool {
1895
1879
self . a_type == other. a_type && self . a_un == other. a_un
@@ -1927,27 +1911,6 @@ cfg_if! {
1927
1911
}
1928
1912
}
1929
1913
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
- }
1951
1914
impl hash:: Hash for __c_anonymous_ifr_ifru {
1952
1915
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1953
1916
unsafe { self . ifru_addr. hash( state) } ;
@@ -1997,15 +1960,6 @@ cfg_if! {
1997
1960
}
1998
1961
}
1999
1962
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
-
2009
1963
impl hash:: Hash for __c_anonymous_ifc_ifcu {
2010
1964
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
2011
1965
unsafe { self . ifcu_buf. hash( state) } ;
@@ -2114,14 +2068,6 @@ cfg_if! {
2114
2068
}
2115
2069
}
2116
2070
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
- }
2125
2071
impl hash:: Hash for __c_anonymous_ifi_epoch {
2126
2072
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
2127
2073
unsafe {
@@ -2137,14 +2083,6 @@ cfg_if! {
2137
2083
}
2138
2084
}
2139
2085
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
- }
2148
2086
impl hash:: Hash for __c_anonymous_ifi_lastchange {
2149
2087
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
2150
2088
unsafe {
0 commit comments