Skip to content

Commit

Permalink
Add #[track_caller] to panic_any
Browse files Browse the repository at this point in the history
  • Loading branch information
veber-alex committed May 27, 2021
1 parent 9814e83 commit ef13f27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ef13f27

Please sign in to comment.