auto merge of #10497 : thestinger/rust/cleanup, r=cmr
This is the same functionality as `ptr::read_ptr`.
This commit is contained in:
commit
43f6791e75
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue