Skip to content

Commit b59f6e0

Browse files
authored
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`.
2 parents 226fe55 + 8cac04e commit b59f6e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/panic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ pub use core::panic::{Location, PanicInfo};
3131
/// accessed later using [`PanicInfo::payload`].
3232
///
3333
/// See the [`panic!`] macro for more information about panicking.
34-
#[unstable(feature = "panic_any", issue = "78500")]
34+
#[stable(feature = "panic_any", since = "1.51.0")]
3535
#[inline]
36-
pub fn panic_any<M: Any + Send>(msg: M) -> ! {
36+
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
3737
crate::panicking::begin_panic(msg);
3838
}
3939

0 commit comments

Comments
 (0)