File tree Expand file tree Collapse file tree 4 files changed +1
-7
lines changed Expand file tree Collapse file tree 4 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -702,24 +702,21 @@ impl<T> RefCell<T> {
702702 /// Replaces the wrapped value with a new one computed from `f`, returning
703703 /// the old value, without deinitializing either one.
704704 ///
705- /// This function corresponds to [`std::mem::replace`](../mem/fn.replace.html).
706- ///
707705 /// # Panics
708706 ///
709707 /// Panics if the value is currently borrowed.
710708 ///
711709 /// # Examples
712710 ///
713711 /// ```
714- /// #![feature(refcell_replace_swap)]
715712 /// use std::cell::RefCell;
716713 /// let cell = RefCell::new(5);
717714 /// let old_value = cell.replace_with(|&mut old| old + 1);
718715 /// assert_eq!(old_value, 5);
719716 /// assert_eq!(cell, RefCell::new(6));
720717 /// ```
721718 #[ inline]
722- #[ unstable ( feature = "refcell_replace_swap" , issue= "43570 ") ]
719+ #[ stable ( feature = "refcell_replace_swap" , since= "1.35.0 ") ]
723720 pub fn replace_with < F : FnOnce ( & mut T ) -> T > ( & self , f : F ) -> T {
724721 let mut_borrow = & mut * self . borrow_mut ( ) ;
725722 let replacement = f ( mut_borrow) ;
Original file line number Diff line number Diff line change 1616#![ feature( pattern) ]
1717#![ feature( range_is_empty) ]
1818#![ feature( raw) ]
19- #![ feature( refcell_replace_swap) ]
2019#![ feature( slice_patterns) ]
2120#![ feature( sort_internals) ]
2221#![ feature( specialization) ]
Original file line number Diff line number Diff line change 4545#![ feature( proc_macro_internals) ]
4646#![ feature( optin_builtin_traits) ]
4747#![ feature( range_is_empty) ]
48- #![ feature( refcell_replace_swap) ]
4948#![ feature( rustc_diagnostic_macros) ]
5049#![ feature( rustc_attrs) ]
5150#![ feature( slice_patterns) ]
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ This API is completely unstable and subject to change.
6464#![ feature( crate_visibility_modifier) ]
6565#![ feature( exhaustive_patterns) ]
6666#![ feature( nll) ]
67- #![ feature( refcell_replace_swap) ]
6867#![ feature( rustc_diagnostic_macros) ]
6968#![ feature( slice_patterns) ]
7069#![ feature( never_type) ]
You can’t perform that action at this time.
0 commit comments