Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 15677e9

Browse files
committedJun 12, 2024
Fix deprecation version.
1 parent a239d5b commit 15677e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/panic/panic_info.rs

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

0 commit comments

Comments
 (0)
Failed to load comments.