]> git.lizzy.rs Git - rust.git/commitdiff
Bump Weak::strong_count/weak_count stabilizations from 1.40 to 1.41
authorDavid Tolnay <dtolnay@gmail.com>
Sun, 15 Dec 2019 03:26:25 +0000 (19:26 -0800)
committerDavid Tolnay <dtolnay@gmail.com>
Sun, 15 Dec 2019 03:26:25 +0000 (19:26 -0800)
src/liballoc/rc.rs
src/liballoc/sync.rs

index 0dab68b155d873884e7bb19b79348dba2c89f697..8cfb9fdf8ea93eefc4e194ff1eab0b3fe71633f5 100644 (file)
@@ -1803,7 +1803,7 @@ pub fn upgrade(&self) -> Option<Rc<T>> {
     /// If `self` was created using [`Weak::new`], this will return 0.
     ///
     /// [`Weak::new`]: #method.new
-    #[stable(feature = "weak_counts", since = "1.40.0")]
+    #[stable(feature = "weak_counts", since = "1.41.0")]
     pub fn strong_count(&self) -> usize {
         if let Some(inner) = self.inner() {
             inner.strong()
@@ -1815,7 +1815,7 @@ pub fn strong_count(&self) -> usize {
     /// Gets the number of `Weak` pointers pointing to this allocation.
     ///
     /// If no strong pointers remain, this will return zero.
-    #[stable(feature = "weak_counts", since = "1.40.0")]
+    #[stable(feature = "weak_counts", since = "1.41.0")]
     pub fn weak_count(&self) -> usize {
         self.inner().map(|inner| {
             if inner.strong() > 0 {
index 1bfe3b802496bc7f630e4e4cb0ef640ceea288a2..d7653f78598ec0d7f1ce3a67255cd3dfa5997e66 100644 (file)
@@ -1496,7 +1496,7 @@ pub fn upgrade(&self) -> Option<Arc<T>> {
     /// If `self` was created using [`Weak::new`], this will return 0.
     ///
     /// [`Weak::new`]: #method.new
-    #[stable(feature = "weak_counts", since = "1.40.0")]
+    #[stable(feature = "weak_counts", since = "1.41.0")]
     pub fn strong_count(&self) -> usize {
         if let Some(inner) = self.inner() {
             inner.strong.load(SeqCst)
@@ -1518,7 +1518,7 @@ pub fn strong_count(&self) -> usize {
     /// `Weak`s pointing to the same allocation.
     ///
     /// [`Weak::new`]: #method.new
-    #[stable(feature = "weak_counts", since = "1.40.0")]
+    #[stable(feature = "weak_counts", since = "1.41.0")]
     pub fn weak_count(&self) -> usize {
         self.inner().map(|inner| {
             let weak = inner.weak.load(SeqCst);