diff options
Diffstat (limited to 'src/libcore/mem.rs')
| -rw-r--r-- | src/libcore/mem.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 86b331d220a..c7652390d9e 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -558,33 +558,3 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U { #![allow(trivial_casts)] ptr::read(src as *const T as *const U) } - -/// Transforms lifetime of the second pointer to match the first. -#[inline] -#[unstable(feature = "copy_lifetime", - reason = "this function may be removed in the future due to its \ - questionable utility")] -#[deprecated(since = "1.2.0", - reason = "unclear that this function buys more safety and \ - lifetimes are generally not handled as such in unsafe \ - code today")] -pub unsafe fn copy_lifetime<'a, S: ?Sized, T: ?Sized + 'a>(_ptr: &'a S, - ptr: &T) -> &'a T { - transmute(ptr) -} - -/// Transforms lifetime of the second mutable pointer to match the first. -#[inline] -#[unstable(feature = "copy_lifetime", - reason = "this function may be removed in the future due to its \ - questionable utility")] -#[deprecated(since = "1.2.0", - reason = "unclear that this function buys more safety and \ - lifetimes are generally not handled as such in unsafe \ - code today")] -pub unsafe fn copy_mut_lifetime<'a, S: ?Sized, T: ?Sized + 'a>(_ptr: &'a S, - ptr: &mut T) - -> &'a mut T -{ - transmute(ptr) -} |
