File tree 3 files changed +1
-5
lines changed
3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -549,16 +549,14 @@ impl<T: Copy> Cell<T> {
549
549
/// # Examples
550
550
///
551
551
/// ```
552
- /// #![feature(cell_update)]
553
- ///
554
552
/// use std::cell::Cell;
555
553
///
556
554
/// let c = Cell::new(5);
557
555
/// c.update(|x| x + 1);
558
556
/// assert_eq!(c.get(), 6);
559
557
/// ```
560
558
#[ inline]
561
- #[ unstable ( feature = "cell_update" , issue = "50186 " ) ]
559
+ #[ stable ( feature = "cell_update" , since = "CURRENT_RUSTC_VERSION " ) ]
562
560
pub fn update ( & self , f : impl FnOnce ( T ) -> T ) {
563
561
let old = self . get ( ) ;
564
562
self . set ( f ( old) ) ;
Original file line number Diff line number Diff line change 12
12
#![ feature( async_iterator) ]
13
13
#![ feature( bigint_helper_methods) ]
14
14
#![ feature( bstr) ]
15
- #![ feature( cell_update) ]
16
15
#![ feature( char_max_len) ]
17
16
#![ feature( clone_to_uninit) ]
18
17
#![ feature( const_eval_select) ]
Original file line number Diff line number Diff line change 1
1
#![ feature( rustc_private) ]
2
2
#![ feature( cfg_match) ]
3
- #![ feature( cell_update) ]
4
3
#![ feature( float_gamma) ]
5
4
#![ feature( float_erf) ]
6
5
#![ feature( map_try_insert) ]
You can’t perform that action at this time.
0 commit comments