about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-11-30 21:21:15 +0100
committerAlexis Bourget <alexis.bourget@gmail.com>2020-11-30 21:21:15 +0100
commit5bdd6409139193ad73d991cba0ee8354457fa99a (patch)
tree29bf74316fb7a9a600d17213cf7a32cd7bf0496f
parentc0560c275587db1131414dd395092ea5b80070b6 (diff)
downloadrust-5bdd6409139193ad73d991cba0ee8354457fa99a.tar.gz
rust-5bdd6409139193ad73d991cba0ee8354457fa99a.zip
Fix several broken links in doc that used the wrong qualifier or Self::
-rw-r--r--Cargo.lock2
-rw-r--r--library/core/src/cell.rs6
-rw-r--r--library/core/src/num/f32.rs10
-rw-r--r--library/core/src/num/f64.rs10
-rw-r--r--library/core/src/str/mod.rs4
5 files changed, 16 insertions, 16 deletions
diff --git a/Cargo.lock b/Cargo.lock
index ae3a16b52b6..18dfe890a0c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5256,7 +5256,7 @@ dependencies = [
  "chrono",
  "lazy_static",
  "matchers",
- "parking_lot 0.9.0",
+ "parking_lot 0.11.0",
  "regex",
  "serde",
  "serde_json",
diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs
index 14cd8576e2a..c7a76d33a66 100644
--- a/library/core/src/cell.rs
+++ b/library/core/src/cell.rs
@@ -929,7 +929,7 @@ impl<T: ?Sized> RefCell<T> {
     /// Also, please be aware that this method is only for special circumstances and is usually
     /// not what you want. In case of doubt, use [`borrow_mut`] instead.
     ///
-    /// [`borrow_mut`]: Self::borrow_mut()
+    /// [`borrow_mut`]: RefCell::borrow_mut()
     ///
     /// # Examples
     ///
@@ -953,7 +953,7 @@ impl<T: ?Sized> RefCell<T> {
     /// ensure no borrows exist and then resets the state tracking shared borrows. This is relevant
     /// if some `Ref` or `RefMut` borrows have been leaked.
     ///
-    /// [`get_mut`]: Self::get_mut()
+    /// [`get_mut`]: RefCell::get_mut()
     ///
     /// # Examples
     ///
@@ -1745,7 +1745,7 @@ impl<T: ?Sized> UnsafeCell<T> {
     /// when casting to `&mut T`, and ensure that there are no mutations
     /// or mutable aliases going on when casting to `&T`.
     ///
-    /// [`get`]: Self::get()
+    /// [`get`]: UnsafeCell::get()
     ///
     /// # Examples
     ///
diff --git a/library/core/src/num/f32.rs b/library/core/src/num/f32.rs
index 5f335b73e9b..33df175bfc5 100644
--- a/library/core/src/num/f32.rs
+++ b/library/core/src/num/f32.rs
@@ -776,8 +776,8 @@ impl f32 {
     /// As the target platform's native endianness is used, portable code
     /// should use [`to_be_bytes`] or [`to_le_bytes`], as appropriate, instead.
     ///
-    /// [`to_be_bytes`]: prim@f32::to_be_bytes()
-    /// [`to_le_bytes`]: prim@f32::to_le_bytes()
+    /// [`to_be_bytes`]: #method.to_be_bytes
+    /// [`to_le_bytes`]: #method.to_le_bytes
     ///
     /// # Examples
     ///
@@ -804,7 +804,7 @@ impl f32 {
     ///
     /// [`to_ne_bytes`] should be preferred over this whenever possible.
     ///
-    /// [`to_ne_bytes`]: prim@f32::to_ne_bytes()
+    /// [`to_ne_bytes`]: #method.to_ne_bytes
     ///
     /// # Examples
     ///
@@ -864,8 +864,8 @@ impl f32 {
     /// likely wants to use [`from_be_bytes`] or [`from_le_bytes`], as
     /// appropriate instead.
     ///
-    /// [`from_be_bytes`]: prim@f32::from_be_bytes()
-    /// [`from_le_bytes`]: prim@f32::from_le_bytes()
+    /// [`from_be_bytes`]: #method.from_be_bytes
+    /// [`from_le_bytes`]: #method.from_le_bytes
     ///
     /// # Examples
     ///
diff --git a/library/core/src/num/f64.rs b/library/core/src/num/f64.rs
index 271671d14ef..b85e8deb6d2 100644
--- a/library/core/src/num/f64.rs
+++ b/library/core/src/num/f64.rs
@@ -790,8 +790,8 @@ impl f64 {
     /// As the target platform's native endianness is used, portable code
     /// should use [`to_be_bytes`] or [`to_le_bytes`], as appropriate, instead.
     ///
-    /// [`to_be_bytes`]: prim@f64::to_be_bytes()
-    /// [`to_le_bytes`]: prim@f64::to_le_bytes()
+    /// [`to_be_bytes`]: #method.to_be_bytes
+    /// [`to_le_bytes`]: #method.to_le_bytes
     ///
     /// # Examples
     ///
@@ -818,7 +818,7 @@ impl f64 {
     ///
     /// [`to_ne_bytes`] should be preferred over this whenever possible.
     ///
-    /// [`to_ne_bytes`]: prim@f64::to_ne_bytes()
+    /// [`to_ne_bytes`]: #method.to_ne_bytes
     ///
     /// # Examples
     ///
@@ -878,8 +878,8 @@ impl f64 {
     /// likely wants to use [`from_be_bytes`] or [`from_le_bytes`], as
     /// appropriate instead.
     ///
-    /// [`from_be_bytes`]: prim@f64::from_be_bytes()
-    /// [`from_le_bytes`]: prim@f64::from_le_bytes()
+    /// [`from_be_bytes`]: #method.from_be_bytes
+    /// [`from_le_bytes`]: #method.from_le_bytes
     ///
     /// # Examples
     ///
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs
index c5a2a70c4f9..a944514f694 100644
--- a/library/core/src/str/mod.rs
+++ b/library/core/src/str/mod.rs
@@ -2254,7 +2254,7 @@ impl str {
     /// To return a new uppercased value without modifying the existing one, use
     /// [`to_ascii_uppercase()`].
     ///
-    /// [`to_ascii_uppercase()`]: prim@str::to_ascii_uppercase()
+    /// [`to_ascii_uppercase()`]: #method.to_ascii_uppercase
     ///
     /// # Examples
     ///
@@ -2281,7 +2281,7 @@ impl str {
     /// To return a new lowercased value without modifying the existing one, use
     /// [`to_ascii_lowercase()`].
     ///
-    /// [`to_ascii_lowercase()`]: prim@str::to_ascii_lowercase()
+    /// [`to_ascii_lowercase()`]: #method.to_ascii_lowercase
     ///
     /// # Examples
     ///