File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/unix/linux_like/linux/musl/b64 Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 87
87
}
88
88
89
89
s_no_extra_traits ! {
90
- // FIXME(union): This is actually a union.
91
- pub struct fpreg_t {
90
+ pub union fpreg_t {
92
91
pub d: c_double,
93
- // f: c_float,
92
+ pub f: c_float,
94
93
}
95
94
}
96
95
97
96
cfg_if ! {
98
97
if #[ cfg( feature = "extra_traits" ) ] {
99
98
impl PartialEq for fpreg_t {
100
- fn eq( & self , other : & fpreg_t) -> bool {
101
- self . d == other . d
99
+ fn eq( & self , _other : & fpreg_t) -> bool {
100
+ unimplemented! ( "traits" )
102
101
}
103
102
}
104
103
105
104
impl Eq for fpreg_t { }
106
105
107
106
impl hash:: Hash for fpreg_t {
108
- fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
109
- let d: u64 = self . d. to_bits( ) ;
110
- d. hash( state) ;
107
+ fn hash<H : hash:: Hasher >( & self , _state: & mut H ) {
108
+ unimplemented!( "traits" )
111
109
}
112
110
}
113
111
}
You can’t perform that action at this time.
0 commit comments