Skip to content

Commit

Permalink
Rollup merge of rust-lang#81194 - m-ou-se:stabilize-panic-any, r=m-ou-se
Browse files Browse the repository at this point in the history
Stabilize std::panic::panic_any.

This stabilizes `std::panic::panic_any`.
  • Loading branch information
m-ou-se committed Jan 20, 2021
2 parents 855d640 + 8cac04e commit 950c779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ 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) -> ! {
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
crate::panicking::begin_panic(msg);
}

Expand Down

0 comments on commit 950c779

Please sign in to comment.