File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments