File tree 2 files changed +0
-5
lines changed
2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -270,15 +270,13 @@ impl<T: ?Sized> Arc<T> {
270
270
/// Get the number of weak references to this value.
271
271
#[ inline]
272
272
#[ unstable( feature = "arc_counts" , reason = "not clearly useful, and racy" , issue = "27718" ) ]
273
- #[ deprecated( since = "1.4.0" , reason = "not clearly useful, and racy" ) ]
274
273
pub fn weak_count ( this : & Self ) -> usize {
275
274
this. inner ( ) . weak . load ( SeqCst ) - 1
276
275
}
277
276
278
277
/// Get the number of strong references to this value.
279
278
#[ inline]
280
279
#[ unstable( feature = "arc_counts" , reason = "not clearly useful, and racy" , issue = "27718" ) ]
281
- #[ deprecated( since = "1.4.0" , reason = "not clearly useful, and racy" ) ]
282
280
pub fn strong_count ( this : & Self ) -> usize {
283
281
this. inner ( ) . strong . load ( SeqCst )
284
282
}
Original file line number Diff line number Diff line change @@ -292,13 +292,11 @@ impl<T: ?Sized> Rc<T> {
292
292
/// Get the number of weak references to this value.
293
293
#[ inline]
294
294
#[ unstable( feature = "rc_counts" , reason = "not clearly useful" , issue = "27718" ) ]
295
- #[ deprecated( since = "1.4.0" , reason = "not clearly useful" ) ]
296
295
pub fn weak_count ( this : & Self ) -> usize { this. weak ( ) - 1 }
297
296
298
297
/// Get the number of strong references to this value.
299
298
#[ inline]
300
299
#[ unstable( feature = "rc_counts" , reason = "not clearly useful" , issue = "27718" ) ]
301
- #[ deprecated( since = "1.4.0" , reason = "not clearly useful" ) ]
302
300
pub fn strong_count ( this : & Self ) -> usize { this. strong ( ) }
303
301
304
302
/// Returns true if there are no other `Rc` or `Weak<T>` values that share
@@ -317,7 +315,6 @@ impl<T: ?Sized> Rc<T> {
317
315
/// ```
318
316
#[ inline]
319
317
#[ unstable( feature = "rc_counts" , reason = "uniqueness has unclear meaning" , issue = "27718" ) ]
320
- #[ deprecated( since = "1.4.0" , reason = "uniqueness has unclear meaning" ) ]
321
318
pub fn is_unique ( this : & Self ) -> bool {
322
319
Rc :: weak_count ( this) == 0 && Rc :: strong_count ( this) == 1
323
320
}
You can’t perform that action at this time.
0 commit comments