Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6957c85

Browse files
committedDec 18, 2024
Stabilize the cell_update feature
FCP complete at [1]. Link: rust-lang#50186 (comment) [1] Closes: rust-lang#50186
1 parent 978c659 commit 6957c85

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed
 

‎library/core/src/cell.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,6 @@ impl<T: Copy> Cell<T> {
549549
/// # Examples
550550
///
551551
/// ```
552-
/// #![feature(cell_update)]
553-
///
554552
/// use std::cell::Cell;
555553
///
556554
/// let c = Cell::new(5);
@@ -560,7 +558,7 @@ impl<T: Copy> Cell<T> {
560558
/// assert_eq!(c.get(), 6);
561559
/// ```
562560
#[inline]
563-
#[unstable(feature = "cell_update", issue = "50186")]
561+
#[stable(feature = "cell_update", since = "CURRENT_RUSTC_VERSION")]
564562
pub fn update<F>(&self, f: F) -> T
565563
where
566564
F: FnOnce(T) -> T,

‎library/core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![feature(async_iter_from_iter)]
1212
#![feature(async_iterator)]
1313
#![feature(bigint_helper_methods)]
14-
#![feature(cell_update)]
1514
#![feature(clone_to_uninit)]
1615
#![feature(const_black_box)]
1716
#![feature(const_eval_select)]

‎src/tools/miri/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![feature(rustc_private)]
2-
#![feature(cell_update)]
32
#![feature(float_gamma)]
43
#![feature(map_try_insert)]
54
#![feature(never_type)]

0 commit comments

Comments
 (0)
Failed to load comments.