diff options
| author | memoryruins <memoryruinsmusic@gmail.com> | 2020-02-22 22:25:47 -0500 |
|---|---|---|
| committer | memoryruins <memoryruinsmusic@gmail.com> | 2020-02-22 22:25:47 -0500 |
| commit | ad47bf50f6ff9d7a73e54bed6ab518c01ae2fdc5 (patch) | |
| tree | 0ae16fc7a8b2267d196dec0c7f345b838e2fd08c /src/libcore | |
| parent | 436494b8f8008b600d64b3951f63c2bb0ea81673 (diff) | |
| download | rust-ad47bf50f6ff9d7a73e54bed6ab518c01ae2fdc5.tar.gz rust-ad47bf50f6ff9d7a73e54bed6ab518c01ae2fdc5.zip | |
Add rustdoc aliases to `ptr::copy` and `ptr::copy_nonoverlapping`
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/intrinsics.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index 2cee23a5c75..43f8cfc0c47 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -1515,6 +1515,7 @@ fn overlaps<T>(src: *const T, dst: *const T, count: usize) -> bool { /// ``` /// /// [`Vec::append`]: ../../std/vec/struct.Vec.html#method.append +#[doc(alias = "memcpy")] #[stable(feature = "rust1", since = "1.0.0")] #[inline] pub unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize) { @@ -1579,6 +1580,7 @@ pub unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize) { /// dst /// } /// ``` +#[doc(alias = "memmove")] #[stable(feature = "rust1", since = "1.0.0")] #[inline] pub unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) { |
