File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 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> {
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 {
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments