4
4
#![ allow( dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals) ]
5
5
6
6
7
- /// Pointers can derive hash
7
+ /// Pointers can derive hash/PartialEq
8
8
#[ repr( C ) ]
9
- #[ derive( Debug , Copy , Hash ) ]
9
+ #[ derive( Debug , Copy , Hash , PartialEq ) ]
10
10
pub struct ConstPtrMutObj {
11
11
pub bar : * const :: std:: os:: raw:: c_int ,
12
12
}
@@ -29,7 +29,7 @@ impl Default for ConstPtrMutObj {
29
29
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
30
30
}
31
31
#[ repr( C ) ]
32
- #[ derive( Debug , Copy , Hash ) ]
32
+ #[ derive( Debug , Copy , Hash , PartialEq ) ]
33
33
pub struct MutPtrMutObj {
34
34
pub bar : * mut :: std:: os:: raw:: c_int ,
35
35
}
@@ -52,7 +52,7 @@ impl Default for MutPtrMutObj {
52
52
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
53
53
}
54
54
#[ repr( C ) ]
55
- #[ derive( Debug , Copy , Hash ) ]
55
+ #[ derive( Debug , Copy , Hash , PartialEq ) ]
56
56
pub struct MutPtrConstObj {
57
57
pub bar : * const :: std:: os:: raw:: c_int ,
58
58
}
@@ -75,7 +75,7 @@ impl Default for MutPtrConstObj {
75
75
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
76
76
}
77
77
#[ repr( C ) ]
78
- #[ derive( Debug , Copy , Hash ) ]
78
+ #[ derive( Debug , Copy , Hash , PartialEq ) ]
79
79
pub struct ConstPtrConstObj {
80
80
pub bar : * const :: std:: os:: raw:: c_int ,
81
81
}
0 commit comments