about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstd/ty.rs2
1 files changed, 1 insertions, 1 deletions
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<T> Unsafe<T> {
 
     /// 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]