Skip to content

Commit 60fa568

Browse files
committed
Fix some broken rustdoc links in core::panic documentation
1 parent 701e3a4 commit 60fa568

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

library/core/src/panic/location.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use crate::fmt;
44
///
55
/// This structure is created by [`PanicInfo::location()`].
66
///
7+
/// [`PanicInfo::location()`]: crate::panic::PanicInfo::location
8+
///
79
/// # Examples
810
///
911
/// ```should_panic

library/core/src/panic/unwind_safe.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ use crate::task::{Context, Poll};
1515
/// purpose of this trait is to encode what types are safe to cross a [`catch_unwind`]
1616
/// boundary with no fear of unwind safety.
1717
///
18+
/// [`catch_unwind`]: ../../std/panic/fn.catch_unwind.html
19+
///
1820
/// ## What is unwind safety?
1921
///
2022
/// In Rust a function can "return" early if it either panics or calls a
@@ -116,6 +118,8 @@ pub auto trait RefUnwindSafe {}
116118
/// account. This wrapper struct is useful for a quick and lightweight
117119
/// annotation that a variable is indeed unwind safe.
118120
///
121+
/// [`catch_unwind`]: ../../std/panic/fn.catch_unwind.html
122+
///
119123
/// # Examples
120124
///
121125
/// One way to use `AssertUnwindSafe` is to assert that the entire closure

0 commit comments

Comments
 (0)