diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-11-14 22:20:12 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-11-14 22:20:12 -0500 |
| commit | fbad2e2ae9ae2793c99999b7e32ab9e8c77aa830 (patch) | |
| tree | e64edbf50d1bd22b03594b39206ea0407a9b1d82 /src/libstd | |
| parent | ade310cbb6e949b27285ca592e34371c1cc6677f (diff) | |
| download | rust-fbad2e2ae9ae2793c99999b7e32ab9e8c77aa830.tar.gz rust-fbad2e2ae9ae2793c99999b7e32ab9e8c77aa830.zip | |
remove `cast::unsafe_copy`
This is the same functionality as `ptr::read_ptr`.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/cast.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libstd/cast.rs b/src/libstd/cast.rs index 05a72dc4109..bc4579c00a0 100644 --- a/src/libstd/cast.rs +++ b/src/libstd/cast.rs @@ -26,14 +26,6 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U { } /** - * 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 * * The forget function will take ownership of the provided value but neglect |
