Rollup merge of #81194 - m-ou-se:stabilize-panic-any, r=m-ou-se
Stabilize std::panic::panic_any. This stabilizes `std::panic::panic_any`.
This commit is contained in:
commit
b59f6e05ef
@ -31,9 +31,9 @@
|
||||
/// 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) -> ! {
|
||||
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
|
||||
crate::panicking::begin_panic(msg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user