diff options
| author | CAD97 <cad97@cad97.com> | 2022-04-12 01:29:16 -0500 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2023-07-30 17:07:59 -0700 |
| commit | ee29d2fd0a0b53f3460a9ffe67db6473e5913385 (patch) | |
| tree | 9423741e11dc2d33a9643bee1ade384727064ab4 /library/alloc | |
| parent | b8f4cb6231dc7d4ff9afe62de798af0dc18ae835 (diff) | |
| download | rust-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.rs | 2 | ||||
| -rw-r--r-- | library/alloc/src/sync.rs | 2 |
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)) } } |
