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.
1 parent f533276 commit 932f239Copy full SHA for 932f239
src/libcore/unsafe.rs
@@ -56,9 +56,9 @@ unsafe fn transmute<L, G>(-thing: L) -> G {
56
}
57
58
/// Coerce an immutable reference to be mutable.
59
-unsafe fn transmute_mut<T>(+ptr: &T) -> &mut T { transmute(ptr) }
+unsafe fn transmute_mut<T>(+ptr: &a/T) -> &a/mut T { transmute(ptr) }
60
/// Coerce a mutable reference to be immutable.
61
-unsafe fn transmute_immut<T>(+ptr: &mut T) -> &T { transmute(ptr) }
+unsafe fn transmute_immut<T>(+ptr: &a/mut T) -> &a/T { transmute(ptr) }
62
/// Coerce a borrowed pointer to have an arbitrary associated region.
63
unsafe fn transmute_region<T>(+ptr: &a/T) -> &b/T { transmute(ptr) }
64
/// Coerce a borrowed mutable pointer to have an arbitrary associated region.
0 commit comments