@@ -29,9 +29,7 @@ macro_rules! expand_align {
2929 pub struct pthread_condattr_t {
3030 size: [ u8 ; :: __SIZEOF_PTHREAD_CONDATTR_T] ,
3131 }
32- }
3332
34- s_no_extra_traits! {
3533 #[ cfg_attr( all( target_pointer_width = "32" ,
3634 any( target_arch = "arm" ,
3735 target_arch = "x86_64" ) ) ,
@@ -68,75 +66,5 @@ macro_rules! expand_align {
6866 size: [ u8 ; :: __SIZEOF_PTHREAD_COND_T] ,
6967 }
7068 }
71-
72- cfg_if! {
73- if #[ cfg( feature = "extra_traits" ) ] {
74- impl PartialEq for pthread_cond_t {
75- fn eq( & self , other: & pthread_cond_t) -> bool {
76- self . size
77- . iter( )
78- . zip( other. size. iter( ) )
79- . all( |( a, b) | a == b)
80- }
81- }
82- impl Eq for pthread_cond_t { }
83- impl :: fmt:: Debug for pthread_cond_t {
84- fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
85- f. debug_struct( "pthread_cond_t" )
86- // FIXME: .field("size", &self.size)
87- . finish( )
88- }
89- }
90- impl :: hash:: Hash for pthread_cond_t {
91- fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
92- self . size. hash( state) ;
93- }
94- }
95-
96- impl PartialEq for pthread_mutex_t {
97- fn eq( & self , other: & pthread_mutex_t) -> bool {
98- self . size
99- . iter( )
100- . zip( other. size. iter( ) )
101- . all( |( a, b) | a == b)
102- }
103- }
104- impl Eq for pthread_mutex_t { }
105- impl :: fmt:: Debug for pthread_mutex_t {
106- fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
107- f. debug_struct( "pthread_mutex_t" )
108- // FIXME: .field("size", &self.size)
109- . finish( )
110- }
111- }
112- impl :: hash:: Hash for pthread_mutex_t {
113- fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
114- self . size. hash( state) ;
115- }
116- }
117-
118- impl PartialEq for pthread_rwlock_t {
119- fn eq( & self , other: & pthread_rwlock_t) -> bool {
120- self . size
121- . iter( )
122- . zip( other. size. iter( ) )
123- . all( |( a, b) | a == b)
124- }
125- }
126- impl Eq for pthread_rwlock_t { }
127- impl :: fmt:: Debug for pthread_rwlock_t {
128- fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
129- f. debug_struct( "pthread_rwlock_t" )
130- // FIXME: .field("size", &self.size)
131- . finish( )
132- }
133- }
134- impl :: hash:: Hash for pthread_rwlock_t {
135- fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
136- self . size. hash( state) ;
137- }
138- }
139- }
140- }
14169 } ;
14270}
0 commit comments