We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772bb43 commit bcea9dbCopy full SHA for bcea9db
std/src/panic.rs
@@ -55,6 +55,7 @@ pub use core::panic::{Location, PanicInfo};
55
/// See the [`panic!`] macro for more information about panicking.
56
#[stable(feature = "panic_any", since = "1.51.0")]
57
#[inline]
58
+#[track_caller]
59
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
60
crate::panicking::begin_panic(msg);
61
}
0 commit comments