Skip to content

Commit c46a49b

Browse files
committed
Stabilize const_cell_into_inner.
1 parent efec545 commit c46a49b

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

library/core/src/cell.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ impl<T> Cell<T> {
416416
/// assert_eq!(five, 5);
417417
/// ```
418418
#[stable(feature = "move_cell", since = "1.17.0")]
419-
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
419+
#[rustc_const_stable(feature = "const_cell_into_inner", since = "1.59.0")]
420420
pub const fn into_inner(self) -> T {
421421
self.value.into_inner()
422422
}
@@ -731,7 +731,7 @@ impl<T> RefCell<T> {
731731
/// let five = c.into_inner();
732732
/// ```
733733
#[stable(feature = "rust1", since = "1.0.0")]
734-
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
734+
#[rustc_const_stable(feature = "const_cell_into_inner", since = "1.59.0")]
735735
#[inline]
736736
pub const fn into_inner(self) -> T {
737737
// Since this function takes `self` (the `RefCell`) by value, the
@@ -1884,7 +1884,7 @@ impl<T> UnsafeCell<T> {
18841884
/// ```
18851885
#[inline(always)]
18861886
#[stable(feature = "rust1", since = "1.0.0")]
1887-
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
1887+
#[rustc_const_stable(feature = "const_cell_into_inner", since = "1.59.0")]
18881888
pub const fn into_inner(self) -> T {
18891889
self.value
18901890
}

library/core/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
#![feature(const_arguments_as_str)]
104104
#![feature(const_bigint_helper_methods)]
105105
#![feature(const_caller_location)]
106-
#![feature(const_cell_into_inner)]
107106
#![feature(const_char_convert)]
108107
#![feature(const_discriminant)]
109108
#![feature(const_eval_select)]

library/core/src/sync/atomic.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ impl AtomicBool {
354354
/// ```
355355
#[inline]
356356
#[stable(feature = "atomic_access", since = "1.15.0")]
357-
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
357+
#[rustc_const_stable(feature = "const_cell_into_inner", since = "1.59.0")]
358358
pub const fn into_inner(self) -> bool {
359359
self.v.into_inner() != 0
360360
}
@@ -960,7 +960,7 @@ impl<T> AtomicPtr<T> {
960960
/// ```
961961
#[inline]
962962
#[stable(feature = "atomic_access", since = "1.15.0")]
963-
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
963+
#[rustc_const_stable(feature = "const_cell_into_inner", since = "1.59.0")]
964964
pub const fn into_inner(self) -> *mut T {
965965
self.p.into_inner()
966966
}
@@ -1472,7 +1472,7 @@ macro_rules! atomic_int {
14721472
/// ```
14731473
#[inline]
14741474
#[$stable_access]
1475-
#[rustc_const_unstable(feature = "const_cell_into_inner", issue = "78729")]
1475+
#[rustc_const_stable(feature = "const_cell_into_inner", since = "1.59.0")]
14761476
pub const fn into_inner(self) -> $int_type {
14771477
self.v.into_inner()
14781478
}

library/core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#![feature(cfg_panic)]
99
#![feature(cfg_target_has_atomic)]
1010
#![feature(const_assume)]
11-
#![feature(const_cell_into_inner)]
1211
#![feature(const_convert)]
1312
#![feature(const_maybe_uninit_as_mut_ptr)]
1413
#![feature(const_maybe_uninit_assume_init)]

0 commit comments

Comments
 (0)