Move replace_with to its own feature flag
I'm not allowed to have the same feature flag associated with multiple stability levels.
This commit is contained in:
parent
fd064e041a
commit
28a19bfa7f
1 changed files with 1 additions and 1 deletions
|
|
@ -616,7 +616,7 @@ impl<T> RefCell<T> {
|
|||
/// assert_eq!(cell, RefCell::new(6));
|
||||
/// ```
|
||||
#[inline]
|
||||
#[unstable(feature = "refcell_replace_swap", issue="43570")]
|
||||
#[unstable(feature = "refcell_replace_with", issue="43570")]
|
||||
pub fn replace_with<F: FnOnce(&mut T) -> T>(&self, f: F) -> T {
|
||||
let mut_borrow = &mut *self.borrow_mut();
|
||||
let replacement = f(mut_borrow);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue