about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDenis Vasilik <contact@denisvasilik.com>2020-08-11 22:16:31 +0200
committerDenis Vasilik <contact@denisvasilik.com>2020-08-11 22:16:31 +0200
commit3c2eb18b9ba287284f5f08f8c256154354c55c64 (patch)
tree2e92315c11336fb2bf3c3c52d01518790666eacb
parent08324fe6f7ac24be4c8bfcab42b12ee447635c80 (diff)
downloadrust-3c2eb18b9ba287284f5f08f8c256154354c55c64.tar.gz
rust-3c2eb18b9ba287284f5f08f8c256154354c55c64.zip
Use intra-doc links
-rw-r--r--library/core/src/hint.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/hint.rs b/library/core/src/hint.rs
index 3dc0ee2b555..9ee50a90510 100644
--- a/library/core/src/hint.rs
+++ b/library/core/src/hint.rs
@@ -24,7 +24,7 @@ use crate::intrinsics;
 /// Otherwise, consider using the [`unreachable!`] macro, which does not allow
 /// optimizations but will panic when executed.
 ///
-/// [`unreachable!`]: ../macro.unreachable.html
+/// [`unreachable!`]: unreachable
 ///
 /// # Example
 ///
@@ -61,7 +61,7 @@ pub const unsafe fn unreachable_unchecked() -> ! {
 /// **Note**: On platforms that do not support receiving spin-loop hints this function does not
 /// do anything at all.
 ///
-/// [`core::sync::atomic::spin_loop_hint`]: ../sync/atomic/fn.spin_loop_hint.html
+/// [`core::sync::atomic::spin_loop_hint`]: crate::sync::atomic::spin_loop_hint
 #[inline]
 #[unstable(feature = "renamed_spin_loop", issue = "55002")]
 pub fn spin_loop() {
@@ -99,7 +99,7 @@ pub fn spin_loop() {
 /// An identity function that *__hints__* to the compiler to be maximally pessimistic about what
 /// `black_box` could do.
 ///
-/// [`std::convert::identity`]: https://doc.rust-lang.org/core/convert/fn.identity.html
+/// [`std::convert::identity`]: crate::convert::identity
 ///
 /// Unlike [`std::convert::identity`], a Rust compiler is encouraged to assume that `black_box` can
 /// use `x` in any possible valid way that Rust code is allowed to without introducing undefined