From ef13f27bc7f35c4a790e2ccd94217e27869f1e14 Mon Sep 17 00:00:00 2001 From: Alex Veber Date: Thu, 27 May 2021 14:19:47 +0300 Subject: [PATCH] Add #[track_caller] to panic_any --- library/std/src/panic.rs | 1 + 1 file changed, 1 insertion(+) 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); }