From ddfcd934a34659bc626f02911aeaf92bfe5f1f0c Mon Sep 17 00:00:00 2001 From: Max Dexheimer Date: Wed, 30 Sep 2026 20:25:50 +0200 Subject: [PATCH] Remove `T: Send + Sync` bound from `Arc::downcast` --- library/alloc/src/rcs/arc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/alloc/src/rcs/arc.rs b/library/alloc/src/rcs/arc.rs index e61ea5193eccb..0c62a4cd35f58 100644 --- a/library/alloc/src/rcs/arc.rs +++ b/library/alloc/src/rcs/arc.rs @@ -3045,7 +3045,7 @@ impl Arc { #[stable(feature = "rc_downcast", since = "1.29.0")] pub fn downcast(self) -> Result, Self> where - T: Any + Send + Sync, + T: Any, { if (*self).is::() { // SAFETY: Check ensures the typecast is okay. @@ -3088,7 +3088,7 @@ impl Arc { #[unstable(feature = "downcast_unchecked", issue = "90850")] pub unsafe fn downcast_unchecked(self) -> Arc where - T: Any + Send + Sync, + T: Any, { // SAFETY: Upheld by caller. unsafe {