diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs index b10dde424821d..9e3880dfd4105 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(msg: M) -> ! { crate::panicking::begin_panic(msg); }