From bd194da4c2116e2461f8dfee51c12d343a62f53e Mon Sep 17 00:00:00 2001 From: inquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com> Date: Fri, 23 Jul 2021 18:12:32 -0700 Subject: [PATCH] Implement `RefUnwindSafe` for `Rc` --- library/alloc/src/rc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs index c0ca068de9c..4fb2f0c8530 100644 --- a/library/alloc/src/rc.rs +++ b/library/alloc/src/rc.rs @@ -318,6 +318,8 @@ impl !marker::Sync for Rc {} #[stable(feature = "catch_unwind", since = "1.9.0")] impl UnwindSafe for Rc {} +#[stable(feature = "rc_ref_unwind_safe", since = "1.58.0")] +impl RefUnwindSafe for Rc {} #[unstable(feature = "coerce_unsized", issue = "27732")] impl, U: ?Sized> CoerceUnsized> for Rc {}