@@ -128,19 +128,31 @@ error: transmute from a `i32` to a `f32`
128128LL | let _: f32 = unsafe { std::mem::transmute(0_i32) };
129129 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `f32::from_bits(0_i32 as u32)`
130130
131+ error: transmute from a `u64` to a `f64`
132+ --> $DIR/transmute.rs:89:31
133+ |
134+ LL | let _: f64 = unsafe { std::mem::transmute(0_u64) };
135+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `f64::from_bits(0_u64)`
136+
137+ error: transmute from a `i64` to a `f64`
138+ --> $DIR/transmute.rs:90:31
139+ |
140+ LL | let _: f64 = unsafe { std::mem::transmute(0_i64) };
141+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `f64::from_bits(0_i64 as u64)`
142+
131143error: transmute from a `&[u8]` to a `&str`
132- --> $DIR/transmute.rs:99 :28
144+ --> $DIR/transmute.rs:108 :28
133145 |
134146LL | let _: &str = unsafe { std::mem::transmute(b) };
135147 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8(b).unwrap()`
136148 |
137149 = note: `-D clippy::transmute-bytes-to-str` implied by `-D warnings`
138150
139151error: transmute from a `&mut [u8]` to a `&mut str`
140- --> $DIR/transmute.rs:100 :32
152+ --> $DIR/transmute.rs:109 :32
141153 |
142154LL | let _: &mut str = unsafe { std::mem::transmute(mb) };
143155 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8_mut(mb).unwrap()`
144156
145- error: aborting due to 22 previous errors
157+ error: aborting due to 24 previous errors
146158
0 commit comments