Skip to content

Commit

Permalink
auto merge of rust-lang#10497 : thestinger/rust/cleanup, r=cmr
Browse files Browse the repository at this point in the history
This is the same functionality as `ptr::read_ptr`.
  • Loading branch information
bors committed Nov 15, 2013
2 parents ade310c + fbad2e2 commit 43f6791
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/libstd/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
dest
}

/**
* Forces a copy of a value, even if that value is considered noncopyable.
*/
#[inline]
pub unsafe fn unsafe_copy<T>(thing: &T) -> T {
transmute_copy(thing)
}

/**
* Move a thing into the void
*
Expand Down

0 comments on commit 43f6791

Please sign in to comment.