diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-08-03 22:56:02 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-08-03 22:56:02 +0500 |
| commit | 74e85a218b418db7ff29f0743efb12c130dfd3ca (patch) | |
| tree | 1944be8f9644282081a00e6381e6139deca380f8 /library/std/src/panic.rs | |
| parent | 7cd950546b4ce68843b4cbdb1ab3a43776202d3a (diff) | |
| download | rust-74e85a218b418db7ff29f0743efb12c130dfd3ca.tar.gz rust-74e85a218b418db7ff29f0743efb12c130dfd3ca.zip | |
removed gate
Diffstat (limited to 'library/std/src/panic.rs')
| -rw-r--r-- | library/std/src/panic.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs index 234fb284a59..37151601982 100644 --- a/library/std/src/panic.rs +++ b/library/std/src/panic.rs @@ -108,8 +108,6 @@ impl<'a> PanicHookInfo<'a> { /// # Example /// /// ```should_panic - /// #![feature(panic_payload_as_str)] - /// /// std::panic::set_hook(Box::new(|panic_info| { /// if let Some(s) = panic_info.payload_as_str() { /// println!("panic occurred: {s:?}"); @@ -122,7 +120,7 @@ impl<'a> PanicHookInfo<'a> { /// ``` #[must_use] #[inline] - #[unstable(feature = "panic_payload_as_str", issue = "125175")] + #[stable(feature = "panic_payload_as_str", since = "CURRENT_RUSTC_VERSION")] pub fn payload_as_str(&self) -> Option<&str> { if let Some(s) = self.payload.downcast_ref::<&str>() { Some(s) |
