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.
1 parent d9c0f0f commit f6023a0Copy full SHA for f6023a0
src/libstd/cast.rs
@@ -15,7 +15,7 @@ use unstable::intrinsics;
15
16
/// Casts the value at `src` to U. The two types must have the same length.
17
pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
18
- let mut dest: U = intrinsics::init();
+ let mut dest: U = intrinsics::uninit();
19
{
20
let dest_ptr: *mut u8 = transmute(&mut dest);
21
let src_ptr: *u8 = transmute(src);
0 commit comments