From b5ce02cbe4bfed5a0abf9a21a0d17c0ab34f9915 Mon Sep 17 00:00:00 2001 From: Matthew Piziak Date: Tue, 30 Aug 2016 16:56:54 -0400 Subject: [PATCH] remove references to `zero_memory` and `copy_memory` I can no longer find these methods in nightly docs. --- src/libcore/ptr.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index f111070b6a6b7..61d53e6050b91 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -117,14 +117,12 @@ pub unsafe fn replace(dest: *mut T, mut src: T) -> T { /// moves the value out of `src` without preventing further usage of `src`. If /// `T` is not [`Copy`], then care must be taken to ensure that the value at /// `src` is not used before the data is overwritten again (e.g. with -/// [`write`], [`zero_memory`], or [`copy_memory`]). Note that `*src = foo` +/// [`write`]). Note that `*src = foo` /// counts as a use because it will attempt to drop the value previously at /// `*src`. /// /// [`Copy`]: ../marker/trait.Copy.html /// [`write`]: fn.write.html -/// [`zero_memory`]: fn.zero_memory.html -/// [`copy_memory`]: fn.copy_memory.html /// /// # Examples /// @@ -215,14 +213,12 @@ pub unsafe fn write(dst: *mut T, src: T) { /// moves the value out of `src` without preventing further usage of `src`. If /// `T` is not [`Copy`], then care must be taken to ensure that the value at /// `src` is not used before the data is overwritten again (e.g. with -/// [`write`], [`zero_memory`], or [`copy_memory`]). Note that `*src = foo` +/// [`write`]). Note that `*src = foo` /// counts as a use because it will attempt to drop the value previously at /// `*src`. /// /// [`Copy`]: ../marker/trait.Copy.html /// [`write`]: fn.write.html -/// [`zero_memory`]: fn.zero_memory.html -/// [`copy_memory`]: fn.copy_memory.html /// /// # Examples ///