Update library/alloc/src/sync.rs

Co-authored-by: David Tolnay <dtolnay@gmail.com>
This commit is contained in:
matthewpipie 2024-09-16 20:05:15 -05:00 committed by GitHub
parent 550e55fec5
commit 6750f042ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -769,7 +769,7 @@ pub fn new_zeroed_in(alloc: A) -> Arc<mem::MaybeUninit<T>, A> {
/// [`upgrade`]: Weak::upgrade
#[cfg(not(no_global_oom_handling))]
#[inline]
#[stable(feature = "arc_new_cyclic", since = "1.60.0")]
#[unstable(feature = "allocator_api", issue = "32838")]
pub fn new_cyclic_in<F>(data_fn: F, alloc: A) -> Arc<T, A>
where
F: FnOnce(&Weak<T, A>) -> T,