diff --git a/src/libstd/ty.rs b/src/libstd/ty.rs index dc4e55deb4b..0c9f0b02fdf 100644 --- a/src/libstd/ty.rs +++ b/src/libstd/ty.rs @@ -63,7 +63,7 @@ impl Unsafe { /// Gets a mutable pointer to the wrapped value #[inline] - pub unsafe fn get(&self) -> *mut T { cast::transmute(&self.value) } + pub unsafe fn get(&self) -> *mut T { cast::transmute_mut_unsafe(&self.value) } /// Unwraps the value #[inline]