diff options
| author | bors <bors@rust-lang.org> | 2014-05-28 07:46:45 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-28 07:46:45 -0700 |
| commit | 9659a509572106e4f7eaee7d87d993f56d33d8be (patch) | |
| tree | f1e04860a74f5a9b594f2c4295b1511f1b3106f7 | |
| parent | 24b1ce1daf9dbf66d04116d0549a48a7610bc614 (diff) | |
| parent | ac833da1830a4a2f1d772a21a365aa5a63a33f52 (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.rs | 4 |
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) } |
