Skip to content

Commit

Permalink
Stabilize ptr_eq feature, closes #36497
Browse files Browse the repository at this point in the history
  • Loading branch information
aturon authored and alexcrichton committed Mar 17, 2017
1 parent 9511fe6 commit 10510ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/liballoc/arc.rs
Expand Up @@ -461,17 +461,13 @@ impl<T: ?Sized> Arc<T> {
}

#[inline]
#[unstable(feature = "ptr_eq",
reason = "newly added",
issue = "36497")]
#[stable(feature = "ptr_eq", since = "1.17.0")]
/// Returns true if the two `Arc`s point to the same value (not
/// just values that compare as equal).
///
/// # Examples
///
/// ```
/// #![feature(ptr_eq)]
///
/// use std::sync::Arc;
///
/// let five = Arc::new(5);
Expand Down
6 changes: 1 addition & 5 deletions src/liballoc/rc.rs
Expand Up @@ -551,17 +551,13 @@ impl<T: ?Sized> Rc<T> {
}

#[inline]
#[unstable(feature = "ptr_eq",
reason = "newly added",
issue = "36497")]
#[stable(feature = "ptr_eq", since = "1.17.0")]
/// Returns true if the two `Rc`s point to the same value (not
/// just values that compare as equal).
///
/// # Examples
///
/// ```
/// #![feature(ptr_eq)]
///
/// use std::rc::Rc;
///
/// let five = Rc::new(5);
Expand Down

0 comments on commit 10510ae

Please sign in to comment.