Skip to content

Commit 28a19bf

Browse files
authored
Move replace_with to its own feature flag
I'm not allowed to have the same feature flag associated with multiple stability levels.
1 parent fd064e0 commit 28a19bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ impl<T> RefCell<T> {
616616
/// assert_eq!(cell, RefCell::new(6));
617617
/// ```
618618
#[inline]
619-
#[unstable(feature = "refcell_replace_swap", issue="43570")]
619+
#[unstable(feature = "refcell_replace_with", issue="43570")]
620620
pub fn replace_with<F: FnOnce(&mut T) -> T>(&self, f: F) -> T {
621621
let mut_borrow = &mut *self.borrow_mut();
622622
let replacement = f(mut_borrow);

0 commit comments

Comments
 (0)