about summary refs log tree commit diff
path: root/library/core/src
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2021-04-28 10:34:22 -0700
committerDavid Tolnay <dtolnay@gmail.com>2021-07-30 10:42:20 -0700
commit60fa568c31f9da49b3e5e7ac14928d145960933e (patch)
treef66ea7af95796f06afe5929c431e634b8890f6cb /library/core/src
parent701e3a45a9b8d2eb32be1c44ac3ef780abb4075f (diff)
downloadrust-60fa568c31f9da49b3e5e7ac14928d145960933e.tar.gz
rust-60fa568c31f9da49b3e5e7ac14928d145960933e.zip
Fix some broken rustdoc links in core::panic documentation
Diffstat (limited to 'library/core/src')
-rw-r--r--library/core/src/panic/location.rs2
-rw-r--r--library/core/src/panic/unwind_safe.rs4
2 files changed, 6 insertions, 0 deletions
diff --git a/library/core/src/panic/location.rs b/library/core/src/panic/location.rs
index 0a97388cc2f..a482414caaf 100644
--- a/library/core/src/panic/location.rs
+++ b/library/core/src/panic/location.rs
@@ -4,6 +4,8 @@ use crate::fmt;
 ///
 /// This structure is created by [`PanicInfo::location()`].
 ///
+/// [`PanicInfo::location()`]: crate::panic::PanicInfo::location
+///
 /// # Examples
 ///
 /// ```should_panic
diff --git a/library/core/src/panic/unwind_safe.rs b/library/core/src/panic/unwind_safe.rs
index a1ee47e4d48..7074fefafeb 100644
--- a/library/core/src/panic/unwind_safe.rs
+++ b/library/core/src/panic/unwind_safe.rs
@@ -15,6 +15,8 @@ use crate::task::{Context, Poll};
 /// purpose of this trait is to encode what types are safe to cross a [`catch_unwind`]
 /// boundary with no fear of unwind safety.
 ///
+/// [`catch_unwind`]: ../../std/panic/fn.catch_unwind.html
+///
 /// ## What is unwind safety?
 ///
 /// In Rust a function can "return" early if it either panics or calls a
@@ -116,6 +118,8 @@ pub auto trait RefUnwindSafe {}
 /// account. This wrapper struct is useful for a quick and lightweight
 /// annotation that a variable is indeed unwind safe.
 ///
+/// [`catch_unwind`]: ../../std/panic/fn.catch_unwind.html
+///
 /// # Examples
 ///
 /// One way to use `AssertUnwindSafe` is to assert that the entire closure