From 9778e03665edbed80eb684ba893abd4e18a0a583 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 14 Dec 2019 19:26:25 -0800 Subject: Bump Weak::strong_count/weak_count stabilizations from 1.40 to 1.41 --- src/liballoc/sync.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/liballoc/sync.rs') diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs index 1bfe3b80249..d7653f78598 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -1496,7 +1496,7 @@ impl Weak { /// 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 @@ impl Weak { /// `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); -- cgit 1.4.1-3-g733a5