Skip to content

Commit

Permalink
refcell_replace_swap: remove feature gate & obsolete documentation item
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcomets committed Mar 31, 2019
1 parent 70fa616 commit c789a53
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/libcore/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,6 @@ impl<T> RefCell<T> {
/// Replaces the wrapped value with a new one computed from `f`, returning
/// the old value, without deinitializing either one.
///
/// This function corresponds to [`std::mem::replace`](../mem/fn.replace.html).
///
/// # Panics
///
/// Panics if the value is currently borrowed.
Expand Down
2 changes: 0 additions & 2 deletions src/libsyntax/feature_gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,6 @@ declare_features! (
(accepted, extern_crate_self, "1.34.0", Some(56409), None),
// support for arbitrary delimited token streams in non-macro attributes
(accepted, unrestricted_attribute_tokens, "1.34.0", Some(55208), None),
// add replace and swap functions to RefCell
(accepted, refcell_replace_swap, "1.35.0", Some(43570), None),
);

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

0 comments on commit c789a53

Please sign in to comment.