diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-05-25 11:47:11 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-05-26 10:26:04 -0400 |
| commit | 14846613bbd72003dd8f244b64ad679b586b6dd9 (patch) | |
| tree | d49e63e4bc91459354e23ba9c5e7474e79afbe7e /src/libstd | |
| parent | b25c5201028d7e08ef6c40385fd848157ea72567 (diff) | |
| download | rust-14846613bbd72003dd8f244b64ad679b586b6dd9.tar.gz rust-14846613bbd72003dd8f244b64ad679b586b6dd9.zip | |
inline bump_box_refcount
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/cast.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/cast.rs b/src/libstd/cast.rs index 40a62c12bb3..9ef5d8ad6f7 100644 --- a/src/libstd/cast.rs +++ b/src/libstd/cast.rs @@ -64,6 +64,7 @@ pub unsafe fn forget<T>(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: @T) { forget(t); } /** |
