We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 249d63e commit bc5e618Copy full SHA for bc5e618
core/src/panic/panic_info.rs
@@ -29,9 +29,8 @@ impl<'a> PanicInfo<'a> {
29
PanicInfo { location, message, can_unwind, force_no_backtrace }
30
}
31
32
- /// If the `panic!` macro from the `core` crate (not from `std`)
33
- /// was used with a formatting string and some additional arguments,
34
- /// returns that message ready to be used for example with [`fmt::write`]
+ /// The message that was given to the `panic!` macro,
+ /// ready to be formatted with e.g. [`fmt::write`].
35
#[must_use]
36
#[unstable(feature = "panic_info_message", issue = "66745")]
37
pub fn message(&self) -> fmt::Arguments<'_> {
0 commit comments