Skip to content

Commit 9778e03

Browse files
committed
Bump Weak::strong_count/weak_count stabilizations from 1.40 to 1.41
1 parent 0d0b283 commit 9778e03

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/liballoc/rc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ impl<T: ?Sized> Weak<T> {
18031803
/// If `self` was created using [`Weak::new`], this will return 0.
18041804
///
18051805
/// [`Weak::new`]: #method.new
1806-
#[stable(feature = "weak_counts", since = "1.40.0")]
1806+
#[stable(feature = "weak_counts", since = "1.41.0")]
18071807
pub fn strong_count(&self) -> usize {
18081808
if let Some(inner) = self.inner() {
18091809
inner.strong()
@@ -1815,7 +1815,7 @@ impl<T: ?Sized> Weak<T> {
18151815
/// Gets the number of `Weak` pointers pointing to this allocation.
18161816
///
18171817
/// If no strong pointers remain, this will return zero.
1818-
#[stable(feature = "weak_counts", since = "1.40.0")]
1818+
#[stable(feature = "weak_counts", since = "1.41.0")]
18191819
pub fn weak_count(&self) -> usize {
18201820
self.inner().map(|inner| {
18211821
if inner.strong() > 0 {

src/liballoc/sync.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ impl<T: ?Sized> Weak<T> {
14961496
/// If `self` was created using [`Weak::new`], this will return 0.
14971497
///
14981498
/// [`Weak::new`]: #method.new
1499-
#[stable(feature = "weak_counts", since = "1.40.0")]
1499+
#[stable(feature = "weak_counts", since = "1.41.0")]
15001500
pub fn strong_count(&self) -> usize {
15011501
if let Some(inner) = self.inner() {
15021502
inner.strong.load(SeqCst)
@@ -1518,7 +1518,7 @@ impl<T: ?Sized> Weak<T> {
15181518
/// `Weak`s pointing to the same allocation.
15191519
///
15201520
/// [`Weak::new`]: #method.new
1521-
#[stable(feature = "weak_counts", since = "1.40.0")]
1521+
#[stable(feature = "weak_counts", since = "1.41.0")]
15221522
pub fn weak_count(&self) -> usize {
15231523
self.inner().map(|inner| {
15241524
let weak = inner.weak.load(SeqCst);

0 commit comments

Comments
 (0)