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
- #[ unstable ( feature = "weak_counts" , issue = "57977 " ) ]
1806
+ #[ stable ( feature = "weak_counts" , since = "1.40.0 " ) ]
1807
1807
pub fn strong_count ( & self ) -> usize {
1808
1808
if let Some ( inner) = self . inner ( ) {
1809
1809
inner. strong ( )
@@ -1819,7 +1819,7 @@ impl<T: ?Sized> Weak<T> {
1819
1819
/// allocation.
1820
1820
///
1821
1821
/// [`Weak::new`]: #method.new
1822
- #[ unstable ( feature = "weak_counts" , issue = "57977 " ) ]
1822
+ #[ stable ( feature = "weak_counts" , since = "1.40.0 " ) ]
1823
1823
pub fn weak_count ( & self ) -> Option < usize > {
1824
1824
self . inner ( ) . map ( |inner| {
1825
1825
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
- #[ unstable ( feature = "weak_counts" , issue = "57977 " ) ]
1499
+ #[ stable ( feature = "weak_counts" , since = "1.40.0 " ) ]
1500
1500
pub fn strong_count ( & self ) -> usize {
1501
1501
if let Some ( inner) = self . inner ( ) {
1502
1502
inner. strong . load ( SeqCst )
@@ -1519,7 +1519,7 @@ impl<T: ?Sized> Weak<T> {
1519
1519
/// `Weak`s pointing to the same allocation.
1520
1520
///
1521
1521
/// [`Weak::new`]: #method.new
1522
- #[ unstable ( feature = "weak_counts" , issue = "57977 " ) ]
1522
+ #[ stable ( feature = "weak_counts" , since = "1.40.0 " ) ]
1523
1523
pub fn weak_count ( & self ) -> Option < usize > {
1524
1524
// Due to the implicit weak pointer added when any strong pointers are
1525
1525
// around, we cannot implement `weak_count` correctly since it
You can’t perform that action at this time.
0 commit comments