We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unnecessary_transmutes
1 parent 6eac4e5 commit 8948e7aCopy full SHA for 8948e7a
src/unix/aix/mod.rs
@@ -326,6 +326,8 @@ s! {
326
pub cmsg_type: c_int,
327
}
328
329
+ // FIXME(1.0): This should not implement `PartialEq`
330
+ #[allow(unpredictable_function_pointer_comparisons)]
331
pub struct sigevent {
332
pub sigev_value: crate::sigval,
333
pub sigev_signo: c_int,
src/unix/aix/powerpc64.rs
@@ -448,7 +448,7 @@ cfg_if! {
448
449
impl hash::Hash for fpreg_t {
450
fn hash<H: hash::Hasher>(&self, state: &mut H) {
451
- let d: u64 = unsafe { mem::transmute(self.d) };
+ let d: u64 = self.d.to_bits();
452
d.hash(state);
453
454
0 commit comments