diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-01-22 14:30:11 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-22 14:30:11 +0000 |
| commit | b59f6e05eff31a8c0445ab3c955ed163dc37ce56 (patch) | |
| tree | 38df3858478b7748f96a235a5d99fbb1bbb8101c | |
| parent | 226fe550570d2574f961449356a8d6059310a267 (diff) | |
| parent | 8cac04e8b862ba144c51dd4e1e9cb47caec4632b (diff) | |
| download | rust-b59f6e05eff31a8c0445ab3c955ed163dc37ce56.tar.gz rust-b59f6e05eff31a8c0445ab3c955ed163dc37ce56.zip | |
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`.
| -rw-r--r-- | library/std/src/panic.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs index d18b94b6c1a..0f568da459b 100644 --- a/library/std/src/panic.rs +++ b/library/std/src/panic.rs @@ -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); } |
