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.
cast::transmute
1 parent 94a055c commit dbeea14Copy full SHA for dbeea14
src/libstd/ty.rs
@@ -63,7 +63,7 @@ impl<T> Unsafe<T> {
63
64
/// Gets a mutable pointer to the wrapped value
65
#[inline]
66
- pub unsafe fn get(&self) -> *mut T { cast::transmute(&self.value) }
+ pub unsafe fn get(&self) -> *mut T { cast::transmute_mut_unsafe(&self.value) }
67
68
/// Unwraps the value
69
0 commit comments