From 5bdd6409139193ad73d991cba0ee8354457fa99a Mon Sep 17 00:00:00 2001 From: Alexis Bourget Date: Mon, 30 Nov 2020 21:21:15 +0100 Subject: [PATCH] Fix several broken links in doc that used the wrong qualifier or Self:: --- Cargo.lock | 2 +- library/core/src/cell.rs | 6 +++--- library/core/src/num/f32.rs | 10 +++++----- library/core/src/num/f64.rs | 10 +++++----- library/core/src/str/mod.rs | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ae3a16b52b6ea..18dfe890a0c1e 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 14cd8576e2ae1..c7a76d33a6666 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -929,7 +929,7 @@ impl RefCell { /// 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 RefCell { /// 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 UnsafeCell { /// 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 5f335b73e9bd6..33df175bfc54d 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 271671d14ef25..b85e8deb6d22c 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 c5a2a70c4f9d5..a944514f694b6 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 ///