diff options
| author | Michael Howell <michael@notriddle.com> | 2017-12-05 12:03:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-05 12:03:57 -0700 |
| commit | 28a19bfa7f418d3aa4cbe6da3aba4b3b2fb87a13 (patch) | |
| tree | 06c80cbb09d716bda8fa507edb86a7c4c573eb0c /src/libcore | |
| parent | fd064e041af61b497778583013298e5d828ffff6 (diff) | |
| download | rust-28a19bfa7f418d3aa4cbe6da3aba4b3b2fb87a13.tar.gz rust-28a19bfa7f418d3aa4cbe6da3aba4b3b2fb87a13.zip | |
Move replace_with to its own feature flag
I'm not allowed to have the same feature flag associated with multiple stability levels.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/cell.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 5da4a5de742..dc9f4b88c20 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -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); |
