We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a55039d commit fe4ac95Copy full SHA for fe4ac95
library/alloc/src/sync.rs
@@ -885,7 +885,7 @@ impl<T: ?Sized> Arc<T> {
885
/// }
886
/// ```
887
#[inline]
888
- #[stable(feature = "arc_mutate_strong_count", since = "1.50.0")]
+ #[stable(feature = "arc_mutate_strong_count", since = "1.51.0")]
889
pub unsafe fn increment_strong_count(ptr: *const T) {
890
// Retain Arc, but don't touch refcount by wrapping in ManuallyDrop
891
let arc = unsafe { mem::ManuallyDrop::new(Arc::<T>::from_raw(ptr)) };
@@ -924,7 +924,7 @@ impl<T: ?Sized> Arc<T> {
924
925
926
927
928
pub unsafe fn decrement_strong_count(ptr: *const T) {
929
unsafe { mem::drop(Arc::from_raw(ptr)) };
930
}
0 commit comments