diff options
Diffstat (limited to 'src/libcore/cast.rs')
| -rw-r--r-- | src/libcore/cast.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/cast.rs b/src/libcore/cast.rs index f4f0d7b6104..030f05c6eea 100644 --- a/src/libcore/cast.rs +++ b/src/libcore/cast.rs @@ -1,4 +1,5 @@ //! Unsafe operations +#[forbid(deprecated_mode)] #[abi = "rust-intrinsic"] extern mod rusti { @@ -18,7 +19,7 @@ pub unsafe fn reinterpret_cast<T, U>(src: &T) -> U { * The forget function will take ownership of the provided value but neglect * to run any required cleanup or memory-management operations on it. This * can be used for various acts of magick, particularly when using - * reinterpret_cast on managed pointer types. + * reinterpret_cast on pointer types. */ #[inline(always)] pub unsafe fn forget<T>(thing: T) { rusti::forget(move thing); } |
