about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-10-13 00:40:40 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2020-11-30 21:18:55 +0100
commit4e54b4c3e67aa1b9aebb36e43ff00343155954d8 (patch)
tree4a028a26db92eb7d58920657e815e7406c399fcd
parent9c27ccff1962a6a25992708f0d2d1f36a0ea4fa1 (diff)
downloadrust-4e54b4c3e67aa1b9aebb36e43ff00343155954d8.tar.gz
rust-4e54b4c3e67aa1b9aebb36e43ff00343155954d8.zip
Intra doc links for the pointer primitive
-rw-r--r--library/core/src/ptr/const_ptr.rs10
-rw-r--r--library/core/src/ptr/mut_ptr.rs28
2 files changed, 19 insertions, 19 deletions
diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs
index d09cdb44e08..abffde316bb 100644
--- a/library/core/src/ptr/const_ptr.rs
+++ b/library/core/src/ptr/const_ptr.rs
@@ -723,7 +723,7 @@ impl<T: ?Sized> *const T {
     ///
     /// See [`ptr::read`] for safety concerns and examples.
     ///
-    /// [`ptr::read`]: ./ptr/fn.read.html
+    /// [`ptr::read`]: read()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn read(self) -> T
@@ -743,7 +743,7 @@ impl<T: ?Sized> *const T {
     ///
     /// See [`ptr::read_volatile`] for safety concerns and examples.
     ///
-    /// [`ptr::read_volatile`]: ./ptr/fn.read_volatile.html
+    /// [`ptr::read_volatile`]: read_volatile()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn read_volatile(self) -> T
@@ -761,7 +761,7 @@ impl<T: ?Sized> *const T {
     ///
     /// See [`ptr::read_unaligned`] for safety concerns and examples.
     ///
-    /// [`ptr::read_unaligned`]: ./ptr/fn.read_unaligned.html
+    /// [`ptr::read_unaligned`]: read_unaligned()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn read_unaligned(self) -> T
@@ -779,7 +779,7 @@ impl<T: ?Sized> *const T {
     ///
     /// See [`ptr::copy`] for safety concerns and examples.
     ///
-    /// [`ptr::copy`]: ./ptr/fn.copy.html
+    /// [`ptr::copy`]: copy()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn copy_to(self, dest: *mut T, count: usize)
@@ -797,7 +797,7 @@ impl<T: ?Sized> *const T {
     ///
     /// See [`ptr::copy_nonoverlapping`] for safety concerns and examples.
     ///
-    /// [`ptr::copy_nonoverlapping`]: ./ptr/fn.copy_nonoverlapping.html
+    /// [`ptr::copy_nonoverlapping`]: copy_nonoverlapping()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn copy_to_nonoverlapping(self, dest: *mut T, count: usize)
diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs
index 537aa20bf1d..1b342ce1f91 100644
--- a/library/core/src/ptr/mut_ptr.rs
+++ b/library/core/src/ptr/mut_ptr.rs
@@ -830,7 +830,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::read`] for safety concerns and examples.
     ///
-    /// [`ptr::read`]: ./ptr/fn.read.html
+    /// [`ptr::read`]: read()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn read(self) -> T
@@ -850,7 +850,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::read_volatile`] for safety concerns and examples.
     ///
-    /// [`ptr::read_volatile`]: ./ptr/fn.read_volatile.html
+    /// [`ptr::read_volatile`]: read_volatile()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn read_volatile(self) -> T
@@ -868,7 +868,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::read_unaligned`] for safety concerns and examples.
     ///
-    /// [`ptr::read_unaligned`]: ./ptr/fn.read_unaligned.html
+    /// [`ptr::read_unaligned`]: read_unaligned()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn read_unaligned(self) -> T
@@ -886,7 +886,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::copy`] for safety concerns and examples.
     ///
-    /// [`ptr::copy`]: ./ptr/fn.copy.html
+    /// [`ptr::copy`]: copy()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn copy_to(self, dest: *mut T, count: usize)
@@ -904,7 +904,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::copy_nonoverlapping`] for safety concerns and examples.
     ///
-    /// [`ptr::copy_nonoverlapping`]: ./ptr/fn.copy_nonoverlapping.html
+    /// [`ptr::copy_nonoverlapping`]: copy_nonoverlapping()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn copy_to_nonoverlapping(self, dest: *mut T, count: usize)
@@ -922,7 +922,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::copy`] for safety concerns and examples.
     ///
-    /// [`ptr::copy`]: ./ptr/fn.copy.html
+    /// [`ptr::copy`]: copy()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn copy_from(self, src: *const T, count: usize)
@@ -940,7 +940,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::copy_nonoverlapping`] for safety concerns and examples.
     ///
-    /// [`ptr::copy_nonoverlapping`]: ./ptr/fn.copy_nonoverlapping.html
+    /// [`ptr::copy_nonoverlapping`]: copy_nonoverlapping()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn copy_from_nonoverlapping(self, src: *const T, count: usize)
@@ -955,7 +955,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::drop_in_place`] for safety concerns and examples.
     ///
-    /// [`ptr::drop_in_place`]: ./ptr/fn.drop_in_place.html
+    /// [`ptr::drop_in_place`]: drop_in_place()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn drop_in_place(self) {
@@ -968,7 +968,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::write`] for safety concerns and examples.
     ///
-    /// [`ptr::write`]: ./ptr/fn.write.html
+    /// [`ptr::write`]: write()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn write(self, val: T)
@@ -984,7 +984,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::write_bytes`] for safety concerns and examples.
     ///
-    /// [`ptr::write_bytes`]: ./ptr/fn.write_bytes.html
+    /// [`ptr::write_bytes`]: write_bytes()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn write_bytes(self, val: u8, count: usize)
@@ -1004,7 +1004,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::write_volatile`] for safety concerns and examples.
     ///
-    /// [`ptr::write_volatile`]: ./ptr/fn.write_volatile.html
+    /// [`ptr::write_volatile`]: write_volatile()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn write_volatile(self, val: T)
@@ -1022,7 +1022,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::write_unaligned`] for safety concerns and examples.
     ///
-    /// [`ptr::write_unaligned`]: ./ptr/fn.write_unaligned.html
+    /// [`ptr::write_unaligned`]: write_unaligned()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn write_unaligned(self, val: T)
@@ -1038,7 +1038,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::replace`] for safety concerns and examples.
     ///
-    /// [`ptr::replace`]: ./ptr/fn.replace.html
+    /// [`ptr::replace`]: replace()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn replace(self, src: T) -> T
@@ -1055,7 +1055,7 @@ impl<T: ?Sized> *mut T {
     ///
     /// See [`ptr::swap`] for safety concerns and examples.
     ///
-    /// [`ptr::swap`]: ./ptr/fn.swap.html
+    /// [`ptr::swap`]: swap()
     #[stable(feature = "pointer_methods", since = "1.26.0")]
     #[inline]
     pub unsafe fn swap(self, with: *mut T)