diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2020-09-01 18:24:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-01 18:24:39 -0700 |
| commit | 17fa7339e95fec2bea7ea9c38f4af8c0f1b0d3f9 (patch) | |
| tree | 404547d38d755bb3a2ffb3fbff81af392a7635ac | |
| parent | 4a6aa350c71859759cff6785b1e64ed348362a7d (diff) | |
| parent | b639cb1e462757aa191060e68da5e0de54e9c016 (diff) | |
| download | rust-17fa7339e95fec2bea7ea9c38f4af8c0f1b0d3f9.tar.gz rust-17fa7339e95fec2bea7ea9c38f4af8c0f1b0d3f9.zip | |
Rollup merge of #76201 - denisvasilik:intra-doc-links-core-panic, r=kennytm
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`]
| -rw-r--r-- | library/core/src/panic.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/library/core/src/panic.rs b/library/core/src/panic.rs index 316ecafe572..25ee73c626e 100644 --- a/library/core/src/panic.rs +++ b/library/core/src/panic.rs @@ -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 @@ -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 @@ -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 /// |
