Stabilize ptr_eq feature, closes #36497
This commit is contained in:
parent
9511fe60ce
commit
10510aefb1
2 changed files with 2 additions and 10 deletions
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue