From fe4ac95cb858a7a26c94c2c236fe380448675a82 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Sat, 30 Jan 2021 21:08:30 +0100 Subject: [PATCH] Bump stable version of arc_mutate_strong_count --- library/alloc/src/sync.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index 1ff30ca610dbb..bfb3a8858ed3a 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -885,7 +885,7 @@ impl Arc { /// } /// ``` #[inline] - #[stable(feature = "arc_mutate_strong_count", since = "1.50.0")] + #[stable(feature = "arc_mutate_strong_count", since = "1.51.0")] pub unsafe fn increment_strong_count(ptr: *const T) { // Retain Arc, but don't touch refcount by wrapping in ManuallyDrop let arc = unsafe { mem::ManuallyDrop::new(Arc::::from_raw(ptr)) }; @@ -924,7 +924,7 @@ impl Arc { /// } /// ``` #[inline] - #[stable(feature = "arc_mutate_strong_count", since = "1.50.0")] + #[stable(feature = "arc_mutate_strong_count", since = "1.51.0")] pub unsafe fn decrement_strong_count(ptr: *const T) { unsafe { mem::drop(Arc::from_raw(ptr)) }; }