File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1843,7 +1843,6 @@ impl<T: ?Sized> Weak<T> {
1843
1843
/// # Examples
1844
1844
///
1845
1845
/// ```
1846
- /// #![feature(weak_ptr_eq)]
1847
1846
/// use std::rc::Rc;
1848
1847
///
1849
1848
/// let first_rc = Rc::new(5);
@@ -1861,7 +1860,6 @@ impl<T: ?Sized> Weak<T> {
1861
1860
/// Comparing `Weak::new`.
1862
1861
///
1863
1862
/// ```
1864
- /// #![feature(weak_ptr_eq)]
1865
1863
/// use std::rc::{Rc, Weak};
1866
1864
///
1867
1865
/// let first = Weak::new();
@@ -1873,7 +1871,7 @@ impl<T: ?Sized> Weak<T> {
1873
1871
/// assert!(!first.ptr_eq(&third));
1874
1872
/// ```
1875
1873
#[ inline]
1876
- #[ unstable ( feature = "weak_ptr_eq" , issue = "55981 " ) ]
1874
+ #[ stable ( feature = "weak_ptr_eq" , since = "1.39.0 " ) ]
1877
1875
pub fn ptr_eq ( & self , other : & Self ) -> bool {
1878
1876
self . ptr . as_ptr ( ) == other. ptr . as_ptr ( )
1879
1877
}
Original file line number Diff line number Diff line change @@ -1562,7 +1562,6 @@ impl<T: ?Sized> Weak<T> {
1562
1562
/// # Examples
1563
1563
///
1564
1564
/// ```
1565
- /// #![feature(weak_ptr_eq)]
1566
1565
/// use std::sync::Arc;
1567
1566
///
1568
1567
/// let first_rc = Arc::new(5);
@@ -1580,7 +1579,6 @@ impl<T: ?Sized> Weak<T> {
1580
1579
/// Comparing `Weak::new`.
1581
1580
///
1582
1581
/// ```
1583
- /// #![feature(weak_ptr_eq)]
1584
1582
/// use std::sync::{Arc, Weak};
1585
1583
///
1586
1584
/// let first = Weak::new();
@@ -1592,7 +1590,7 @@ impl<T: ?Sized> Weak<T> {
1592
1590
/// assert!(!first.ptr_eq(&third));
1593
1591
/// ```
1594
1592
#[ inline]
1595
- #[ unstable ( feature = "weak_ptr_eq" , issue = "55981 " ) ]
1593
+ #[ stable ( feature = "weak_ptr_eq" , since = "1.39.0 " ) ]
1596
1594
pub fn ptr_eq ( & self , other : & Self ) -> bool {
1597
1595
self . ptr . as_ptr ( ) == other. ptr . as_ptr ( )
1598
1596
}
You can’t perform that action at this time.
0 commit comments