diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs index e373be5bb6e2d..85045f8d9864b 100644 --- a/library/alloc/src/rc.rs +++ b/library/alloc/src/rc.rs @@ -414,7 +414,7 @@ impl Rc { /// ``` /// [`upgrade`]: Weak::upgrade #[cfg(not(no_global_oom_handling))] - #[stable(feature = "arc_new_cyclic", since = "1.59.0")] + #[stable(feature = "arc_new_cyclic", since = "1.60.0")] pub fn new_cyclic(data_fn: F) -> Rc where F: FnOnce(&Weak) -> T, diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index aba45f36c1532..a20b84325aabd 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -391,7 +391,7 @@ impl Arc { /// [`upgrade`]: Weak::upgrade #[cfg(not(no_global_oom_handling))] #[inline] - #[stable(feature = "arc_new_cyclic", since = "1.59.0")] + #[stable(feature = "arc_new_cyclic", since = "1.60.0")] pub fn new_cyclic(data_fn: F) -> Arc where F: FnOnce(&Weak) -> T,