We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 518722e commit ad0667fCopy full SHA for ad0667f
std/src/panic.rs
@@ -63,6 +63,13 @@ impl<'a> PanicHookInfo<'a> {
63
///
64
/// This will commonly, but not always, be a `&'static str` or [`String`].
65
66
+ /// A invocation of the `panic!()` macro in Rust 2021 or later will always result in a
67
+ /// panic payload of type `&'static str` or `String`.
68
+ ///
69
+ /// Only an invocation of [`panic_any`]
70
+ /// (or, in Rust 2018 and earlier, `panic!(x)` where `x` is something other than a string)
71
+ /// can result in a panic payload other than a `&'static str` or `String`.
72
73
/// [`String`]: ../../std/string/struct.String.html
74
75
/// # Examples
0 commit comments