File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1803,7 +1803,7 @@ impl<T: ?Sized> Weak<T> {
1803
1803
/// If `self` was created using [`Weak::new`], this will return 0.
1804
1804
///
1805
1805
/// [`Weak::new`]: #method.new
1806
- #[ stable( feature = "weak_counts" , since = "1.40 .0" ) ]
1806
+ #[ stable( feature = "weak_counts" , since = "1.41 .0" ) ]
1807
1807
pub fn strong_count ( & self ) -> usize {
1808
1808
if let Some ( inner) = self . inner ( ) {
1809
1809
inner. strong ( )
@@ -1815,7 +1815,7 @@ impl<T: ?Sized> Weak<T> {
1815
1815
/// Gets the number of `Weak` pointers pointing to this allocation.
1816
1816
///
1817
1817
/// 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" ) ]
1819
1819
pub fn weak_count ( & self ) -> usize {
1820
1820
self . inner ( ) . map ( |inner| {
1821
1821
if inner. strong ( ) > 0 {
Original file line number Diff line number Diff line change @@ -1496,7 +1496,7 @@ impl<T: ?Sized> Weak<T> {
1496
1496
/// If `self` was created using [`Weak::new`], this will return 0.
1497
1497
///
1498
1498
/// [`Weak::new`]: #method.new
1499
- #[ stable( feature = "weak_counts" , since = "1.40 .0" ) ]
1499
+ #[ stable( feature = "weak_counts" , since = "1.41 .0" ) ]
1500
1500
pub fn strong_count ( & self ) -> usize {
1501
1501
if let Some ( inner) = self . inner ( ) {
1502
1502
inner. strong . load ( SeqCst )
@@ -1518,7 +1518,7 @@ impl<T: ?Sized> Weak<T> {
1518
1518
/// `Weak`s pointing to the same allocation.
1519
1519
///
1520
1520
/// [`Weak::new`]: #method.new
1521
- #[ stable( feature = "weak_counts" , since = "1.40 .0" ) ]
1521
+ #[ stable( feature = "weak_counts" , since = "1.41 .0" ) ]
1522
1522
pub fn weak_count ( & self ) -> usize {
1523
1523
self . inner ( ) . map ( |inner| {
1524
1524
let weak = inner. weak . load ( SeqCst ) ;
You can’t perform that action at this time.
0 commit comments