This commit is contained in:
Djzin 2017-03-12 18:41:58 +00:00
parent 5702f436aa
commit d1fec0d87a

View file

@ -448,7 +448,7 @@ pub unsafe fn uninitialized<T>() -> T {
pub fn swap<T>(x: &mut T, y: &mut T) {
unsafe {
// Give ourselves some scratch space to work with
let mut t: [u8; 16] = mem::uninitialized();
let mut t: [u8; 16] = uninitialized();
let x = x as *mut T as *mut u8;
let y = y as *mut T as *mut u8;