We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9814e83 commit ef13f27Copy full SHA for ef13f27
library/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