auto merge of #10497 : thestinger/rust/cleanup, r=cmr

This is the same functionality as `ptr::read_ptr`.
This commit is contained in:
bors 2013-11-14 19:31:24 -08:00
commit 43f6791e75

View file

@ -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
*