Add #[track_caller] to panic_any

This commit is contained in:
Alex Veber 2021-05-27 14:19:47 +03:00
parent 9814e83094
commit ef13f27bc7

View file

@ -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);
}