about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorCAD97 <cad97@cad97.com>2022-04-12 01:29:16 -0500
committerJubilee Young <workingjubilee@gmail.com>2023-07-30 17:07:59 -0700
commitee29d2fd0a0b53f3460a9ffe67db6473e5913385 (patch)
tree9423741e11dc2d33a9643bee1ade384727064ab4 /library/alloc
parentb8f4cb6231dc7d4ff9afe62de798af0dc18ae835 (diff)
downloadrust-ee29d2fd0a0b53f3460a9ffe67db6473e5913385.tar.gz
rust-ee29d2fd0a0b53f3460a9ffe67db6473e5913385.zip
Stabilize const-weak-new
Bump its stabilization version several times along
the way to accommodate changes in release processes.

Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
Co-authored-by: Trevor Gross <t.gross35@gmail.com>
Diffstat (limited to 'library/alloc')
-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 d0d37c08d13..a00174ceac6 100644
--- a/library/alloc/src/rc.rs
+++ b/library/alloc/src/rc.rs
@@ -2112,7 +2112,7 @@ impl<T> Weak<T> {
     /// assert!(empty.upgrade().is_none());
     /// ```
     #[stable(feature = "downgraded_weak", since = "1.10.0")]
-    #[rustc_const_unstable(feature = "const_weak_new", issue = "95091", reason = "recently added")]
+    #[rustc_const_stable(feature = "const_weak_new", since = "CURRENT_RUSTC_VERSION")]
     #[must_use]
     pub const fn new() -> Weak<T> {
         Weak { ptr: unsafe { NonNull::new_unchecked(ptr::invalid_mut::<RcBox<T>>(usize::MAX)) } }
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs
index a19999cd725..f6c7ab27ba7 100644
--- a/library/alloc/src/sync.rs
+++ b/library/alloc/src/sync.rs
@@ -1743,7 +1743,7 @@ impl<T> Weak<T> {
     /// assert!(empty.upgrade().is_none());
     /// ```
     #[stable(feature = "downgraded_weak", since = "1.10.0")]
-    #[rustc_const_unstable(feature = "const_weak_new", issue = "95091", reason = "recently added")]
+    #[rustc_const_stable(feature = "const_weak_new", since = "CURRENT_RUSTC_VERSION")]
     #[must_use]
     pub const fn new() -> Weak<T> {
         Weak { ptr: unsafe { NonNull::new_unchecked(ptr::invalid_mut::<ArcInner<T>>(usize::MAX)) } }