Skip to content

Commit

Permalink
Make 'static bound on panic_any explicit.
Browse files Browse the repository at this point in the history
This was already implied because Any: 'static, but this makes it
explicit.
  • Loading branch information
m-ou-se committed Jan 19, 2021
1 parent 230d5b1 commit 8cac04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub use core::panic::{Location, PanicInfo};
/// See the [`panic!`] macro for more information about panicking.
#[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);
}

Expand Down

0 comments on commit 8cac04e

Please sign in to comment.