Skip to content

Commit ef13f27

Browse files
committed
Add #[track_caller] to panic_any
1 parent 9814e83 commit ef13f27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/panic.rs

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ pub use core::panic::{Location, PanicInfo};
5555
/// See the [`panic!`] macro for more information about panicking.
5656
#[stable(feature = "panic_any", since = "1.51.0")]
5757
#[inline]
58+
#[track_caller]
5859
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
5960
crate::panicking::begin_panic(msg);
6061
}

0 commit comments

Comments
 (0)