From 14846613bbd72003dd8f244b64ad679b586b6dd9 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 25 May 2013 11:47:11 -0400 Subject: [PATCH] inline bump_box_refcount --- src/libstd/cast.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstd/cast.rs b/src/libstd/cast.rs index 40a62c12bb34e..9ef5d8ad6f756 100644 --- a/src/libstd/cast.rs +++ b/src/libstd/cast.rs @@ -64,6 +64,7 @@ pub unsafe fn forget(thing: T) { intrinsics::forget(thing); } * and/or reinterpret_cast when such calls would otherwise scramble a box's * reference count */ +#[inline(always)] pub unsafe fn bump_box_refcount(t: @T) { forget(t); } /**