]> git.lizzy.rs Git - rust.git/commitdiff
Implement `RefUnwindSafe` for `Rc<T>`
authorinquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com>
Sat, 24 Jul 2021 01:12:32 +0000 (18:12 -0700)
committerinquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com>
Tue, 2 Nov 2021 23:30:55 +0000 (16:30 -0700)
library/alloc/src/rc.rs

index c0ca068de9c21f955791dbe918157b80bfb30499..4fb2f0c8530d7e983aad7e7dc57c8071d5589f30 100644 (file)
@@ -318,6 +318,8 @@ impl<T: ?Sized> !marker::Sync for Rc<T> {}
 
 #[stable(feature = "catch_unwind", since = "1.9.0")]
 impl<T: RefUnwindSafe + ?Sized> UnwindSafe for Rc<T> {}
+#[stable(feature = "rc_ref_unwind_safe", since = "1.58.0")]
+impl<T: RefUnwindSafe + ?Sized> RefUnwindSafe for Rc<T> {}
 
 #[unstable(feature = "coerce_unsized", issue = "27732")]
 impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Rc<U>> for Rc<T> {}