From 0f9c191d8fd34a650166db70c307fd6869b4c4c5 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 15 Jun 2013 15:22:22 -0700 Subject: [PATCH] std: Remove doc references to reinterpret_cast --- src/libstd/cast.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libstd/cast.rs b/src/libstd/cast.rs index 2109568a0a4..4d79dea6052 100644 --- a/src/libstd/cast.rs +++ b/src/libstd/cast.rs @@ -54,17 +54,14 @@ pub unsafe fn transmute_copy(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 pointer types. + * can be used for various acts of magick. */ #[inline(always)] pub unsafe fn forget(thing: T) { intrinsics::forget(thing); } /** * Force-increment the reference count on a shared box. If used - * carelessly, this can leak the box. Use this in conjunction with transmute - * and/or reinterpret_cast when such calls would otherwise scramble a box's - * reference count + * carelessly, this can leak the box. */ #[inline(always)] pub unsafe fn bump_box_refcount(t: @T) { forget(t); }