File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,14 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
54
54
*
55
55
* The forget function will take ownership of the provided value but neglect
56
56
* to run any required cleanup or memory-management operations on it. This
57
- * can be used for various acts of magick, particularly when using
58
- * reinterpret_cast on pointer types.
57
+ * can be used for various acts of magick.
59
58
*/
60
59
#[ inline( always) ]
61
60
pub unsafe fn forget < T > ( thing : T ) { intrinsics:: forget ( thing) ; }
62
61
63
62
/**
64
63
* Force-increment the reference count on a shared box. If used
65
- * carelessly, this can leak the box. Use this in conjunction with transmute
66
- * and/or reinterpret_cast when such calls would otherwise scramble a box's
67
- * reference count
64
+ * carelessly, this can leak the box.
68
65
*/
69
66
#[ inline( always) ]
70
67
pub unsafe fn bump_box_refcount < T > ( t : @T ) { forget ( t) ; }
You can’t perform that action at this time.
0 commit comments