Skip to content

Commit

Permalink
Fix some broken rustdoc links in core::panic documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 30, 2021
1 parent 701e3a4 commit 60fa568
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/core/src/panic/location.rs
Expand Up @@ -4,6 +4,8 @@ use crate::fmt;
///
/// This structure is created by [`PanicInfo::location()`].
///
/// [`PanicInfo::location()`]: crate::panic::PanicInfo::location
///
/// # Examples
///
/// ```should_panic
Expand Down
4 changes: 4 additions & 0 deletions library/core/src/panic/unwind_safe.rs
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 60fa568

Please sign in to comment.