Skip to content

Commit

Permalink
inline bump_box_refcount
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed May 26, 2013
1 parent b25c520 commit 1484661
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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); }

/**
Expand Down

4 comments on commit 1484661

@bors
Copy link
Contributor

@bors bors commented on 1484661 May 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 1484661 May 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging thestinger/rust/swap_fast = 1484661 into auto

@bors
Copy link
Contributor

@bors bors commented on 1484661 May 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thestinger/rust/swap_fast = 1484661 merged ok, testing candidate = 715d072c

@bors
Copy link
Contributor

@bors bors commented on 1484661 May 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.