Skip to content

Commit

Permalink
don't do deprecations yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Aug 19, 2015
1 parent 5bbaa3c commit 4c8d75f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/liballoc/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,13 @@ impl<T: ?Sized> Arc<T> {
/// Get the number of weak references to this value.
#[inline]
#[unstable(feature = "arc_counts", reason = "not clearly useful, and racy", issue = "27718")]
#[deprecated(since = "1.4.0", reason = "not clearly useful, and racy")]
pub fn weak_count(this: &Self) -> usize {
this.inner().weak.load(SeqCst) - 1
}

/// Get the number of strong references to this value.
#[inline]
#[unstable(feature = "arc_counts", reason = "not clearly useful, and racy", issue = "27718")]
#[deprecated(since = "1.4.0", reason = "not clearly useful, and racy")]
pub fn strong_count(this: &Self) -> usize {
this.inner().strong.load(SeqCst)
}
Expand Down
3 changes: 0 additions & 3 deletions src/liballoc/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,11 @@ impl<T: ?Sized> Rc<T> {
/// Get the number of weak references to this value.
#[inline]
#[unstable(feature = "rc_counts", reason = "not clearly useful", issue = "27718")]
#[deprecated(since = "1.4.0", reason = "not clearly useful")]
pub fn weak_count(this: &Self) -> usize { this.weak() - 1 }

/// Get the number of strong references to this value.
#[inline]
#[unstable(feature = "rc_counts", reason = "not clearly useful", issue = "27718")]
#[deprecated(since = "1.4.0", reason = "not clearly useful")]
pub fn strong_count(this: &Self) -> usize { this.strong() }

/// Returns true if there are no other `Rc` or `Weak<T>` values that share
Expand All @@ -317,7 +315,6 @@ impl<T: ?Sized> Rc<T> {
/// ```
#[inline]
#[unstable(feature = "rc_counts", reason = "uniqueness has unclear meaning", issue = "27718")]
#[deprecated(since = "1.4.0", reason = "uniqueness has unclear meaning")]
pub fn is_unique(this: &Self) -> bool {
Rc::weak_count(this) == 0 && Rc::strong_count(this) == 1
}
Expand Down

0 comments on commit 4c8d75f

Please sign in to comment.