diff options
Diffstat (limited to 'src/libstd/panic.rs')
| -rw-r--r-- | src/libstd/panic.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstd/panic.rs b/src/libstd/panic.rs index d5699fca85d..ba18d15f5c4 100644 --- a/src/libstd/panic.rs +++ b/src/libstd/panic.rs @@ -227,10 +227,9 @@ impl<T: ?Sized> !RefUnwindSafe for UnsafeCell<T> {} #[stable(feature = "catch_unwind", since = "1.9.0")] impl<T> RefUnwindSafe for AssertUnwindSafe<T> {} -// XXX: Obviously wrong, but what should it be? -#[stable(feature = "catch_unwind", since = "1.9.0")] +#[stable(feature = "unwind_safe_lock_refs", since = "1.12.0")] impl<T: ?Sized> RefUnwindSafe for Mutex<T> {} -#[stable(feature = "catch_unwind", since = "1.9.0")] +#[stable(feature = "unwind_safe_lock_refs", since = "1.12.0")] impl<T: ?Sized> RefUnwindSafe for RwLock<T> {} #[stable(feature = "catch_unwind", since = "1.9.0")] |
