Fix deprecation version.

This commit is contained in:
Mara Bos 2024-06-12 13:15:17 +02:00
parent cae18fa7b0
commit 1dc7952303

View File

@ -80,7 +80,7 @@ impl<'a> PanicInfo<'a> {
///
/// [`std::panic::PanicHookInfo`]: ../../std/panic/struct.PanicHookInfo.html
/// [`std::panic::PanicHookInfo::payload`]: ../../std/panic/struct.PanicHookInfo.html#method.payload
#[deprecated(since = "1.77.0", note = "this never returns anything useful")]
#[deprecated(since = "CURRENT_RUSTC_VERSION", note = "this never returns anything useful")]
#[stable(feature = "panic_hooks", since = "1.10.0")]
#[allow(deprecated, deprecated_in_future)]
pub fn payload(&self) -> &(dyn crate::any::Any + Send) {