Add #[track_caller] to panic_any
This commit is contained in:
parent
9814e83094
commit
ef13f27bc7
@ -55,6 +55,7 @@ pub use core::panic::{Location, PanicInfo};
|
|||||||
/// See the [`panic!`] macro for more information about panicking.
|
/// See the [`panic!`] macro for more information about panicking.
|
||||||
#[stable(feature = "panic_any", since = "1.51.0")]
|
#[stable(feature = "panic_any", since = "1.51.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
#[track_caller]
|
||||||
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
|
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
|
||||||
crate::panicking::begin_panic(msg);
|
crate::panicking::begin_panic(msg);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user