File tree 2 files changed +4
-7
lines changed
src/unix/linux_like/linux/gnu/b64
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -2680,8 +2680,6 @@ fn test_linux(target: &str) {
2680
2680
"utsname" if mips32 || mips64 => true ,
2681
2681
// FIXME:
2682
2682
"mcontext_t" if s390x => true ,
2683
- // FIXME: This is actually a union.
2684
- "fpreg_t" if s390x => true ,
2685
2683
2686
2684
"sockaddr_un" | "sembuf" | "ff_constant_effect"
2687
2685
if mips32 && ( gnu || musl) =>
Original file line number Diff line number Diff line change @@ -222,18 +222,17 @@ s! {
222
222
}
223
223
224
224
s_no_extra_traits ! {
225
- // FIXME: This is actually a union.
226
- pub struct fpreg_t {
225
+ pub union fpreg_t {
227
226
pub d: :: c_double,
228
- // f: ::c_float,
227
+ pub f: :: c_float,
229
228
}
230
229
}
231
230
232
231
cfg_if ! {
233
232
if #[ cfg( feature = "extra_traits" ) ] {
234
233
impl PartialEq for fpreg_t {
235
234
fn eq( & self , other: & fpreg_t) -> bool {
236
- self . d == other. d
235
+ unsafe { self . d == other. d }
237
236
}
238
237
}
239
238
@@ -242,7 +241,7 @@ cfg_if! {
242
241
impl :: fmt:: Debug for fpreg_t {
243
242
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
244
243
f. debug_struct( "fpreg_t" )
245
- . field( "d" , & self . d)
244
+ . field( "d" , unsafe { & self . d } )
246
245
. finish( )
247
246
}
248
247
}
You can’t perform that action at this time.
0 commit comments