Stabilize std::panic::panic_any.
This commit is contained in:
parent
d03fe84169
commit
230d5b1e5f
@ -31,7 +31,7 @@ pub use core::panic::{Location, PanicInfo};
|
||||
/// accessed later using [`PanicInfo::payload`].
|
||||
///
|
||||
/// See the [`panic!`] macro for more information about panicking.
|
||||
#[unstable(feature = "panic_any", issue = "78500")]
|
||||
#[stable(feature = "panic_any", since = "1.51.0")]
|
||||
#[inline]
|
||||
pub fn panic_any<M: Any + Send>(msg: M) -> ! {
|
||||
crate::panicking::begin_panic(msg);
|
||||
|
Loading…
Reference in New Issue
Block a user