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 @@ -4340,8 +4340,6 @@ fn test_linux(target: &str) {
4340
4340
cfg. skip_roundtrip ( move |s| match s {
4341
4341
// FIXME:
4342
4342
"mcontext_t" if s390x => true ,
4343
- // FIXME: This is actually a union.
4344
- "fpreg_t" if s390x => true ,
4345
4343
4346
4344
// The test doesn't work on some env:
4347
4345
"ipv6_mreq"
Original file line number Diff line number Diff line change @@ -212,18 +212,17 @@ s! {
212
212
}
213
213
214
214
s_no_extra_traits ! {
215
- // FIXME: 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
224
fn eq( & self , other: & fpreg_t) -> bool {
226
- self . d == other. d
225
+ unsafe { self . d == other. d }
227
226
}
228
227
}
229
228
@@ -232,7 +231,7 @@ cfg_if! {
232
231
impl :: fmt:: Debug for fpreg_t {
233
232
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
234
233
f. debug_struct( "fpreg_t" )
235
- . field( "d" , & self . d)
234
+ . field( "d" , unsafe { & self . d } )
236
235
. finish( )
237
236
}
238
237
}
You can’t perform that action at this time.
0 commit comments