about summary refs log tree commit diff
path: root/src/libstd/cast.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-16 06:31:00 -0700
committerbors <bors@rust-lang.org>2013-06-16 06:31:00 -0700
commitebca26cd542e2e733bf11c7be7b541b54b0f9ef2 (patch)
tree8b61ab3171b6f1f48d3c86c27dfa195988c0e4f6 /src/libstd/cast.rs
parentc1548991cfb36028ad9e274c690e410c7dfd2c30 (diff)
parent0f9c191d8fd34a650166db70c307fd6869b4c4c5 (diff)
downloadrust-ebca26cd542e2e733bf11c7be7b541b54b0f9ef2.tar.gz
rust-ebca26cd542e2e733bf11c7be7b541b54b0f9ef2.zip
auto merge of #7163 : brson/rust/reinterpret-cast, r=thestinger
Diffstat (limited to 'src/libstd/cast.rs')
-rw-r--r--src/libstd/cast.rs7
1 files 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<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 pointer types.
+ * can be used for various acts of magick.
  */
 #[inline(always)]
 pub unsafe fn forget<T>(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: @T) { forget(t); }