Skip to content

Commit

Permalink
remove cast::unsafe_copy
Browse files Browse the repository at this point in the history
This is the same functionality as `ptr::read_ptr`.
  • Loading branch information
thestinger committed Nov 15, 2013
1 parent ade310c commit fbad2e2
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 fbad2e2

Please sign in to comment.