From 28a19bfa7f418d3aa4cbe6da3aba4b3b2fb87a13 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 5 Dec 2017 12:03:57 -0700 Subject: [PATCH] Move replace_with to its own feature flag I'm not allowed to have the same feature flag associated with multiple stability levels. --- src/libcore/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 5da4a5de742e..dc9f4b88c206 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -616,7 +616,7 @@ impl RefCell { /// 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 T>(&self, f: F) -> T { let mut_borrow = &mut *self.borrow_mut(); let replacement = f(mut_borrow);