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)) }; }