diff options
| author | Thomas de Zeeuw <thomasdezeeuw@gmail.com> | 2019-08-25 13:06:49 +0200 |
|---|---|---|
| committer | Thomas de Zeeuw <thomasdezeeuw@gmail.com> | 2019-08-25 13:06:57 +0200 |
| commit | d86516d91e643fd87eadf057096989ce454f4d81 (patch) | |
| tree | 21efdf87e10c1e83058ac253a4eb759a943fab27 /src/liballoc/sync.rs | |
| parent | 783469ca09005d135c3204a55069707d1cd705a9 (diff) | |
| download | rust-d86516d91e643fd87eadf057096989ce454f4d81.tar.gz rust-d86516d91e643fd87eadf057096989ce454f4d81.zip | |
Stabilise weak_ptr_eq
Diffstat (limited to 'src/liballoc/sync.rs')
| -rw-r--r-- | src/liballoc/sync.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs index 9ffc1673e5a..e89433d67bd 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -1562,7 +1562,6 @@ impl<T: ?Sized> Weak<T> { /// # Examples /// /// ``` - /// #![feature(weak_ptr_eq)] /// use std::sync::Arc; /// /// let first_rc = Arc::new(5); @@ -1580,7 +1579,6 @@ impl<T: ?Sized> Weak<T> { /// Comparing `Weak::new`. /// /// ``` - /// #![feature(weak_ptr_eq)] /// use std::sync::{Arc, Weak}; /// /// let first = Weak::new(); @@ -1592,7 +1590,7 @@ impl<T: ?Sized> Weak<T> { /// assert!(!first.ptr_eq(&third)); /// ``` #[inline] - #[unstable(feature = "weak_ptr_eq", issue = "55981")] + #[stable(feature = "weak_ptr_eq", since = "1.39.0")] pub fn ptr_eq(&self, other: &Self) -> bool { self.ptr.as_ptr() == other.ptr.as_ptr() } |
