Skip to content

Commit

Permalink
std: Remove doc references to reinterpret_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Jun 15, 2013
1 parent 998e41a commit 0f9c191
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/libstd/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,14 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
*
* The forget function will take ownership of the provided value but neglect
* to run any required cleanup or memory-management operations on it. This
* can be used for various acts of magick, particularly when using
* reinterpret_cast on pointer types.
* can be used for various acts of magick.
*/
#[inline(always)]
pub unsafe fn forget<T>(thing: T) { intrinsics::forget(thing); }

/**
* Force-increment the reference count on a shared box. If used
* carelessly, this can leak the box. Use this in conjunction with transmute
* and/or reinterpret_cast when such calls would otherwise scramble a box's
* reference count
* carelessly, this can leak the box.
*/
#[inline(always)]
pub unsafe fn bump_box_refcount<T>(t: @T) { forget(t); }
Expand Down

5 comments on commit 0f9c191

@bors
Copy link
Contributor

@bors bors commented on 0f9c191 Jun 16, 2013

Choose a reason for hiding this comment

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

saw approval from thestinger
at brson@0f9c191

@bors
Copy link
Contributor

@bors bors commented on 0f9c191 Jun 16, 2013

Choose a reason for hiding this comment

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

merging brson/rust/reinterpret-cast = 0f9c191 into auto

@bors
Copy link
Contributor

@bors bors commented on 0f9c191 Jun 16, 2013

Choose a reason for hiding this comment

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

brson/rust/reinterpret-cast = 0f9c191 merged ok, testing candidate = ebca26c

@bors
Copy link
Contributor

@bors bors commented on 0f9c191 Jun 16, 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 0f9c191 Jun 16, 2013

Choose a reason for hiding this comment

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

fast-forwarding master to auto = ebca26c

Please sign in to comment.