about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-28 07:46:45 -0700
committerbors <bors@rust-lang.org>2014-05-28 07:46:45 -0700
commit9659a509572106e4f7eaee7d87d993f56d33d8be (patch)
treef1e04860a74f5a9b594f2c4295b1511f1b3106f7
parent24b1ce1daf9dbf66d04116d0549a48a7610bc614 (diff)
parentac833da1830a4a2f1d772a21a365aa5a63a33f52 (diff)
auto merge of #14463 : SergioBenitez/rust/deprecation-fix, r=alexcrichton
The deprecation warning text for mem::move_val_init was incorrect. It should point users to `overwrite` instead of itself.
-rw-r--r--src/libcore/mem.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs
index 6135f4dcca4..157be76b8f1 100644
--- a/src/libcore/mem.rs
+++ b/src/libcore/mem.rs
@@ -160,9 +160,9 @@ pub unsafe fn overwrite<T>(dst: *mut T, src: T) {
     intrinsics::move_val_init(&mut *dst, src)
 }
 
-/// Deprecated, use move_val_init() instead
+/// Deprecated, use `overwrite` instead
 #[inline]
-#[deprecated = "this function has been renamed to move_val_init()"]
+#[deprecated = "this function has been renamed to `overwrite`"]
 pub unsafe fn move_val_init<T>(dst: &mut T, src: T) {
     overwrite(dst, src)
 }