We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e28520 + 9b588a9 commit 8cfef59Copy full SHA for 8cfef59
src/libstd/cast.rs
@@ -75,12 +75,6 @@ pub unsafe fn transmute_mut_unsafe<T>(ptr: *T) -> *mut T {
75
transmute(ptr)
76
}
77
78
-/// Coerce an immutable reference to be mutable.
79
-#[inline]
80
-pub unsafe fn transmute_immut_unsafe<T>(ptr: *mut T) -> *T {
81
- transmute(ptr)
82
-}
83
-
84
/// Coerce a mutable reference to have an arbitrary associated region.
85
#[inline]
86
pub unsafe fn transmute_mut_region<'a,'b,T>(ptr: &'a mut T) -> &'b mut T {
0 commit comments