From 4c8d75fd9b4e0abf1107647a48e3578907e2e00e Mon Sep 17 00:00:00 2001 From: Alexis Beingessner Date: Wed, 19 Aug 2015 13:04:13 -0700 Subject: [PATCH] don't do deprecations yet --- src/liballoc/arc.rs | 2 -- src/liballoc/rc.rs | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 95de2b6abae9a..aa71b7b132a12 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -270,7 +270,6 @@ impl Arc { /// 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 } @@ -278,7 +277,6 @@ impl Arc { /// 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) } diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index e0ff3a1bca030..9649d0f71a14d 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -292,13 +292,11 @@ impl Rc { /// 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` values that share @@ -317,7 +315,6 @@ impl Rc { /// ``` #[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 }