about summary refs log tree commit diff
path: root/src/liballoc/rc.rs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2019-12-14 19:26:25 -0800
committerDavid Tolnay <dtolnay@gmail.com>2019-12-14 19:26:25 -0800
commit9778e03665edbed80eb684ba893abd4e18a0a583 (patch)
treee7a3facec4f98ff26e408c5838f3a24d78ec7684 /src/liballoc/rc.rs
parent0d0b283c2c5a4df891ca47b27f0851ef2549ac3b (diff)
downloadrust-9778e03665edbed80eb684ba893abd4e18a0a583.tar.gz
rust-9778e03665edbed80eb684ba893abd4e18a0a583.zip
Bump Weak::strong_count/weak_count stabilizations from 1.40 to 1.41
Diffstat (limited to 'src/liballoc/rc.rs')
-rw-r--r--src/liballoc/rc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index 0dab68b155d..8cfb9fdf8ea 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -1803,7 +1803,7 @@ impl<T: ?Sized> Weak<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 @@ impl<T: ?Sized> Weak<T> {
     /// 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 {