Skip to content

Commit

Permalink
Stabilize std::cell::Ref::clone
Browse files Browse the repository at this point in the history
  • Loading branch information
aturon committed Dec 15, 2016
1 parent 415f3de commit b288270
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libcore/cell.rs
Expand Up @@ -888,9 +888,7 @@ impl<'b, T: ?Sized> Ref<'b, T> {
/// `Ref::clone(...)`. A `Clone` implementation or a method would interfere
/// with the widespread use of `r.borrow().clone()` to clone the contents of
/// a `RefCell`.
#[unstable(feature = "cell_extras",
reason = "likely to be moved to a method, pending language changes",
issue = "27746")]
#[stable(feature = "cell_extras", since = "1.15.0")]
#[inline]
pub fn clone(orig: &Ref<'b, T>) -> Ref<'b, T> {
Ref {
Expand Down

0 comments on commit b288270

Please sign in to comment.