From c789a539a29b411b89411f8660d6ed2c2c4c4bbb Mon Sep 17 00:00:00 2001 From: Jean-Marie Comets Date: Sun, 31 Mar 2019 14:50:06 +0200 Subject: [PATCH] refcell_replace_swap: remove feature gate & obsolete documentation item --- src/libcore/cell.rs | 2 -- src/libsyntax/feature_gate.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 99169a6a259ce..f8c7ce101322e 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -702,8 +702,6 @@ impl RefCell { /// 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. diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index d53cfddaf8de9..dcb55fb572f33 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -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