Update library/alloc/src/sync.rs
Co-authored-by: David Tolnay <dtolnay@gmail.com>
This commit is contained in:
parent
550e55fec5
commit
6750f042ca
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user