about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2022-01-22 15:48:42 +0000
committerGitHub <noreply@github.com>2022-01-22 15:48:42 +0000
commit00e191c72d16135e74014bc621629524570bbf77 (patch)
tree413c990b800ee2406d661d4acacdc4c167641b3e
parentce31cbc7a35131d0386f03982d7cac8786f574f4 (diff)
downloadrust-00e191c72d16135e74014bc621629524570bbf77.tar.gz
rust-00e191c72d16135e74014bc621629524570bbf77.zip
Update stabilization version of arc_new_cyclic
-rw-r--r--library/alloc/src/rc.rs2
-rw-r--r--library/alloc/src/sync.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs
index e373be5bb6e..85045f8d986 100644
--- a/library/alloc/src/rc.rs
+++ b/library/alloc/src/rc.rs
@@ -414,7 +414,7 @@ impl<T> Rc<T> {
     /// ```
     /// [`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<F>(data_fn: F) -> Rc<T>
     where
         F: FnOnce(&Weak<T>) -> T,
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs
index aba45f36c15..a20b84325aa 100644
--- a/library/alloc/src/sync.rs
+++ b/library/alloc/src/sync.rs
@@ -391,7 +391,7 @@ impl<T> Arc<T> {
     /// [`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<F>(data_fn: F) -> Arc<T>
     where
         F: FnOnce(&Weak<T>) -> T,