File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
src/unix/linux_like/linux/gnu/b64 Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -4806,8 +4806,6 @@ fn test_linux(target: &str) {
4806
4806
cfg. skip_roundtrip ( move |s| match s {
4807
4807
// FIXME(1.0):
4808
4808
"mcontext_t" if s390x => true ,
4809
- // FIXME(union): This is actually a union.
4810
- "fpreg_t" if s390x => true ,
4811
4809
4812
4810
// The test doesn't work on some env:
4813
4811
"ipv6_mreq"
Original file line number Diff line number Diff line change @@ -212,27 +212,25 @@ s! {
212
212
}
213
213
214
214
s_no_extra_traits ! {
215
- // FIXME(union): This is actually a union.
216
- pub struct fpreg_t {
215
+ pub union fpreg_t {
217
216
pub d: c_double,
218
- // f: c_float,
217
+ pub f: c_float,
219
218
}
220
219
}
221
220
222
221
cfg_if ! {
223
222
if #[ cfg( feature = "extra_traits" ) ] {
224
223
impl PartialEq for fpreg_t {
225
- fn eq( & self , other : & fpreg_t) -> bool {
226
- self . d == other . d
224
+ fn eq( & self , _other : & fpreg_t) -> bool {
225
+ unimplemented! ( "traits" )
227
226
}
228
227
}
229
228
230
229
impl Eq for fpreg_t { }
231
230
232
231
impl hash:: Hash for fpreg_t {
233
- fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
234
- let d: u64 = self . d. to_bits( ) ;
235
- d. hash( state) ;
232
+ fn hash<H : hash:: Hasher >( & self , _state: & mut H ) {
233
+ unimplemented!( "traits" )
236
234
}
237
235
}
238
236
}
You can’t perform that action at this time.
0 commit comments