Skip to content

Commit 17fa733

Browse files
authored
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`]
2 parents 4a6aa35 + b639cb1 commit 17fa733

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

library/core/src/panic.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ impl<'a> PanicInfo<'a> {
9292
/// If the `panic!` macro from the `core` crate (not from `std`)
9393
/// was used with a formatting string and some additional arguments,
9494
/// returns that message ready to be used for example with [`fmt::write`]
95-
///
96-
/// [`fmt::write`]: ../fmt/fn.write.html
9795
#[unstable(feature = "panic_info_message", issue = "66745")]
9896
pub fn message(&self) -> Option<&fmt::Arguments<'_>> {
9997
self.message
@@ -105,8 +103,6 @@ impl<'a> PanicInfo<'a> {
105103
/// This method will currently always return [`Some`], but this may change
106104
/// in future versions.
107105
///
108-
/// [`Some`]: ../../std/option/enum.Option.html#variant.Some
109-
///
110106
/// # Examples
111107
///
112108
/// ```should_panic
@@ -153,10 +149,7 @@ impl fmt::Display for PanicInfo<'_> {
153149

154150
/// A struct containing information about the location of a panic.
155151
///
156-
/// This structure is created by the [`location`] method of [`PanicInfo`].
157-
///
158-
/// [`location`]: ../../std/panic/struct.PanicInfo.html#method.location
159-
/// [`PanicInfo`]: ../../std/panic/struct.PanicInfo.html
152+
/// This structure is created by [`PanicInfo::location()`].
160153
///
161154
/// # Examples
162155
///

0 commit comments

Comments
 (0)