diff options
author | bors <bors@rust-lang.org> | 2019-07-03 07:58:29 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2019-07-03 07:58:29 +0000 |
commit | a53f9df32fbb0b5f4382caaad8f1a46f36ea887c (patch) | |
tree | 144e6561384fe5b1b97b234677ed9de269daee1c /src/libstd/panic.rs | |
parent | 9d98f8f319eaa1a40f76fb15b52ee2a179e5286a (diff) | |
parent | 3e9fc8c46a64280ee0d6f3423e26e633c85f490f (diff) | |
download | rust-1.36.0.tar.gz |
Auto merge of #62311 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum1.36.0
[stable] Emergency stable backports
Diffstat (limited to 'src/libstd/panic.rs')
-rw-r--r-- | src/libstd/panic.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/panic.rs b/src/libstd/panic.rs index 7a3b5d30500..1d4fd98dd75 100644 --- a/src/libstd/panic.rs +++ b/src/libstd/panic.rs @@ -4,6 +4,7 @@ use crate::any::Any; use crate::cell::UnsafeCell; +use crate::collections; use crate::fmt; use crate::future::Future; use crate::pin::Pin; @@ -285,6 +286,11 @@ impl RefUnwindSafe for atomic::AtomicBool {} #[stable(feature = "unwind_safe_atomic_refs", since = "1.14.0")] impl<T> RefUnwindSafe for atomic::AtomicPtr<T> {} +// https://github.com/rust-lang/rust/issues/62301 +#[stable(feature = "hashbrown", since = "1.36.0")] +impl<K, V, S> UnwindSafe for collections::HashMap<K, V, S> + where K: UnwindSafe, V: UnwindSafe, S: UnwindSafe {} + #[stable(feature = "catch_unwind", since = "1.9.0")] impl<T> Deref for AssertUnwindSafe<T> { type Target = T; |