Skip to content

Commit 43f6791

Browse files
committed
auto merge of #10497 : thestinger/rust/cleanup, r=cmr
This is the same functionality as `ptr::read_ptr`.
2 parents ade310c + fbad2e2 commit 43f6791

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/libstd/cast.rs

-8
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
2525
dest
2626
}
2727

28-
/**
29-
* Forces a copy of a value, even if that value is considered noncopyable.
30-
*/
31-
#[inline]
32-
pub unsafe fn unsafe_copy<T>(thing: &T) -> T {
33-
transmute_copy(thing)
34-
}
35-
3628
/**
3729
* Move a thing into the void
3830
*

0 commit comments

Comments
 (0)