Stabilize std::panic::panic_any.

This commit is contained in:
Mara Bos 2021-01-19 21:30:49 +01:00
parent d03fe84169
commit 230d5b1e5f

View File

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