Skip to content

Commit c789a53

Browse files
committed
refcell_replace_swap: remove feature gate & obsolete documentation item
1 parent 70fa616 commit c789a53

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/libcore/cell.rs

-2
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,6 @@ 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.

src/libsyntax/feature_gate.rs

-2
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,6 @@ declare_features! (
703703
(accepted, extern_crate_self, "1.34.0", Some(56409), None),
704704
// support for arbitrary delimited token streams in non-macro attributes
705705
(accepted, unrestricted_attribute_tokens, "1.34.0", Some(55208), None),
706-
// add replace and swap functions to RefCell
707-
(accepted, refcell_replace_swap, "1.35.0", Some(43570), None),
708706
);
709707

710708
// If you change this, please modify `src/doc/unstable-book` as well. You must

0 commit comments

Comments
 (0)