Skip to content

Commit 35d7059

Browse files
authored
Unrolled build for rust-lang#134446
Rollup merge of rust-lang#134446 - tgross35:stabilize-cell_update, r=jhpratt Stabilize the `cell_update` feature Included API: ```rust impl<T: Copy> Cell<T> { pub fn update(&self, f: impl FnOnce(T) -> T); } ``` FCP completed once at rust-lang#50186 (comment) but the signature has since changed. Closes: rust-lang#50186
2 parents 7f69523 + ac34a6f commit 35d7059

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,16 +549,14 @@ 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);
557555
/// c.update(|x| x + 1);
558556
/// assert_eq!(c.get(), 6);
559557
/// ```
560558
#[inline]
561-
#[unstable(feature = "cell_update", issue = "50186")]
559+
#[stable(feature = "cell_update", since = "CURRENT_RUSTC_VERSION")]
562560
pub fn update(&self, f: impl FnOnce(T) -> T) {
563561
let old = self.get();
564562
self.set(f(old));

library/coretests/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#![feature(async_iterator)]
1313
#![feature(bigint_helper_methods)]
1414
#![feature(bstr)]
15-
#![feature(cell_update)]
1615
#![feature(char_max_len)]
1716
#![feature(clone_to_uninit)]
1817
#![feature(const_eval_select)]

src/tools/miri/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![feature(rustc_private)]
22
#![feature(cfg_match)]
3-
#![feature(cell_update)]
43
#![feature(float_gamma)]
54
#![feature(float_erf)]
65
#![feature(map_try_insert)]

0 commit comments

Comments
 (0)