File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ use crate::fmt;
4
4
///
5
5
/// This structure is created by [`PanicInfo::location()`].
6
6
///
7
+ /// [`PanicInfo::location()`]: crate::panic::PanicInfo::location
8
+ ///
7
9
/// # Examples
8
10
///
9
11
/// ```should_panic
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ use crate::task::{Context, Poll};
15
15
/// purpose of this trait is to encode what types are safe to cross a [`catch_unwind`]
16
16
/// boundary with no fear of unwind safety.
17
17
///
18
+ /// [`catch_unwind`]: ../../std/panic/fn.catch_unwind.html
19
+ ///
18
20
/// ## What is unwind safety?
19
21
///
20
22
/// In Rust a function can "return" early if it either panics or calls a
@@ -116,6 +118,8 @@ pub auto trait RefUnwindSafe {}
116
118
/// account. This wrapper struct is useful for a quick and lightweight
117
119
/// annotation that a variable is indeed unwind safe.
118
120
///
121
+ /// [`catch_unwind`]: ../../std/panic/fn.catch_unwind.html
122
+ ///
119
123
/// # Examples
120
124
///
121
125
/// One way to use `AssertUnwindSafe` is to assert that the entire closure
You can’t perform that action at this time.
0 commit comments