Add #[track_caller] to panic_any
This commit is contained in:
parent
9814e83094
commit
ef13f27bc7
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue