Stabilize ptr_eq feature, closes #36497

This commit is contained in:
Aaron Turon 2017-03-14 21:01:18 -07:00 committed by Alex Crichton
parent 9511fe60ce
commit 10510aefb1
2 changed files with 2 additions and 10 deletions

View File

@ -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);

View File

@ -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);