about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-01-19 21:41:41 +0100
committerMara Bos <m-ou.se@m-ou.se>2021-01-19 21:41:41 +0100
commit8cac04e8b862ba144c51dd4e1e9cb47caec4632b (patch)
treeaecbeb7cd8a11a40efa57ea4e51e90f314dbae0a
parent230d5b1e5f0a7e2e75be11c2324f23445df83850 (diff)
downloadrust-8cac04e8b862ba144c51dd4e1e9cb47caec4632b.tar.gz
rust-8cac04e8b862ba144c51dd4e1e9cb47caec4632b.zip
Make 'static bound on panic_any explicit.
This was already implied because Any: 'static, but this makes it
explicit.
-rw-r--r--library/std/src/panic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs
index bb08fa35d17..0f568da459b 100644
--- a/library/std/src/panic.rs
+++ b/library/std/src/panic.rs
@@ -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);
 }