Skip to content

Commit

Permalink
Stabilize the cell_update feature
Browse files Browse the repository at this point in the history
FCP complete at [1].

Link: rust-lang#50186 (comment) [1]
Closes: rust-lang#50186
  • Loading branch information
tgross35 committed Dec 18, 2024
1 parent 978c659 commit 6957c85
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions library/core/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,6 @@ impl<T: Copy> Cell<T> {
/// # Examples
///
/// ```
/// #![feature(cell_update)]
///
/// use std::cell::Cell;
///
/// let c = Cell::new(5);
Expand All @@ -560,7 +558,7 @@ impl<T: Copy> Cell<T> {
/// assert_eq!(c.get(), 6);
/// ```
#[inline]
#[unstable(feature = "cell_update", issue = "50186")]
#[stable(feature = "cell_update", since = "CURRENT_RUSTC_VERSION")]
pub fn update<F>(&self, f: F) -> T
where
F: FnOnce(T) -> T,
Expand Down
1 change: 0 additions & 1 deletion library/core/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#![feature(async_iter_from_iter)]
#![feature(async_iterator)]
#![feature(bigint_helper_methods)]
#![feature(cell_update)]
#![feature(clone_to_uninit)]
#![feature(const_black_box)]
#![feature(const_eval_select)]
Expand Down
1 change: 0 additions & 1 deletion src/tools/miri/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![feature(rustc_private)]
#![feature(cell_update)]
#![feature(float_gamma)]
#![feature(map_try_insert)]
#![feature(never_type)]
Expand Down

0 comments on commit 6957c85

Please sign in to comment.