about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-11-14 22:20:12 -0500
committerDaniel Micay <danielmicay@gmail.com>2013-11-14 22:20:12 -0500
commitfbad2e2ae9ae2793c99999b7e32ab9e8c77aa830 (patch)
treee64edbf50d1bd22b03594b39206ea0407a9b1d82 /src/libstd
parentade310cbb6e949b27285ca592e34371c1cc6677f (diff)
downloadrust-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.rs8
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