1
Fork 0

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] #[inline]
#[unstable(feature = "ptr_eq", #[stable(feature = "ptr_eq", since = "1.17.0")]
reason = "newly added",
issue = "36497")]
/// Returns true if the two `Arc`s point to the same value (not /// Returns true if the two `Arc`s point to the same value (not
/// just values that compare as equal). /// just values that compare as equal).
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ptr_eq)]
///
/// use std::sync::Arc; /// use std::sync::Arc;
/// ///
/// let five = Arc::new(5); /// let five = Arc::new(5);

View file

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