Skip to content

Commit

Permalink
Rollup merge of #76201 - denisvasilik:intra-doc-links-core-panic, r=k…
Browse files Browse the repository at this point in the history
…ennytm

Move to intra-doc links for library/core/src/panic.rs

Helps with #75080.

@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc

Known issues:

* Link from `core` to `std` (#74481):

    [`set_hook`]
    [`String`]
  • Loading branch information
tmandry authored Sep 2, 2020
2 parents 4a6aa35 + b639cb1 commit 17fa733
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions library/core/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ impl<'a> PanicInfo<'a> {
/// If the `panic!` macro from the `core` crate (not from `std`)
/// was used with a formatting string and some additional arguments,
/// returns that message ready to be used for example with [`fmt::write`]
///
/// [`fmt::write`]: ../fmt/fn.write.html
#[unstable(feature = "panic_info_message", issue = "66745")]
pub fn message(&self) -> Option<&fmt::Arguments<'_>> {
self.message
Expand All @@ -105,8 +103,6 @@ impl<'a> PanicInfo<'a> {
/// This method will currently always return [`Some`], but this may change
/// in future versions.
///
/// [`Some`]: ../../std/option/enum.Option.html#variant.Some
///
/// # Examples
///
/// ```should_panic
Expand Down Expand Up @@ -153,10 +149,7 @@ impl fmt::Display for PanicInfo<'_> {

/// A struct containing information about the location of a panic.
///
/// This structure is created by the [`location`] method of [`PanicInfo`].
///
/// [`location`]: ../../std/panic/struct.PanicInfo.html#method.location
/// [`PanicInfo`]: ../../std/panic/struct.PanicInfo.html
/// This structure is created by [`PanicInfo::location()`].
///
/// # Examples
///
Expand Down

0 comments on commit 17fa733

Please sign in to comment.