Skip to content

Commit 58a0860

Browse files
authored
Rollup merge of rust-lang#75423 - denisvasilik:intra-doc-links-core-hint, r=dtolnay
Move to intra-doc links for /library/core/src/hint.rs Helps with rust-lang#75080. @rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
2 parents 60fc66b + 4c5896f commit 58a0860

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/core/src/hint.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use crate::intrinsics;
2424
/// Otherwise, consider using the [`unreachable!`] macro, which does not allow
2525
/// optimizations but will panic when executed.
2626
///
27-
/// [`unreachable!`]: ../macro.unreachable.html
2827
///
2928
/// # Example
3029
///
@@ -61,7 +60,7 @@ pub const unsafe fn unreachable_unchecked() -> ! {
6160
/// **Note**: On platforms that do not support receiving spin-loop hints this function does not
6261
/// do anything at all.
6362
///
64-
/// [`core::sync::atomic::spin_loop_hint`]: ../sync/atomic/fn.spin_loop_hint.html
63+
/// [`core::sync::atomic::spin_loop_hint`]: crate::sync::atomic::spin_loop_hint
6564
#[inline]
6665
#[unstable(feature = "renamed_spin_loop", issue = "55002")]
6766
pub fn spin_loop() {

0 commit comments

Comments
 (0)