Skip to content

Commit 1484661

Browse files
committed
inline bump_box_refcount
1 parent b25c520 commit 1484661

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/cast.rs

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ pub unsafe fn forget<T>(thing: T) { intrinsics::forget(thing); }
6464
* and/or reinterpret_cast when such calls would otherwise scramble a box's
6565
* reference count
6666
*/
67+
#[inline(always)]
6768
pub unsafe fn bump_box_refcount<T>(t: @T) { forget(t); }
6869

6970
/**

0 commit comments

Comments
 (0)