about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/std/src/panic.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs
index b10dde42482..9e3880dfd41 100644
--- a/library/std/src/panic.rs
+++ b/library/std/src/panic.rs
@@ -55,6 +55,7 @@ pub use core::panic::{Location, PanicInfo};
 /// See the [`panic!`] macro for more information about panicking.
 #[stable(feature = "panic_any", since = "1.51.0")]
 #[inline]
+#[track_caller]
 pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
     crate::panicking::begin_panic(msg);
 }