Skip to content

Commit 8cac04e

Browse files
committed
Make 'static bound on panic_any explicit.
This was already implied because Any: 'static, but this makes it explicit.
1 parent 230d5b1 commit 8cac04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub use core::panic::{Location, PanicInfo};
3333
/// See the [`panic!`] macro for more information about panicking.
3434
#[stable(feature = "panic_any", since = "1.51.0")]
3535
#[inline]
36-
pub fn panic_any<M: Any + Send>(msg: M) -> ! {
36+
pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
3737
crate::panicking::begin_panic(msg);
3838
}
3939

0 commit comments

Comments
 (0)