diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2015-08-19 13:04:13 -0700 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2015-08-19 15:52:12 -0700 |
| commit | 4c8d75fd9b4e0abf1107647a48e3578907e2e00e (patch) | |
| tree | 99bdf04169c57fe4c74c45a02e26b32fe1db1296 /src/liballoc | |
| parent | 5bbaa3c9ac64cbd324240d6aa079c5d4b0e7f82e (diff) | |
| download | rust-4c8d75fd9b4e0abf1107647a48e3578907e2e00e.tar.gz rust-4c8d75fd9b4e0abf1107647a48e3578907e2e00e.zip | |
don't do deprecations yet
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/arc.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/rc.rs | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 95de2b6abae..aa71b7b132a 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -270,7 +270,6 @@ 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 } @@ -278,7 +277,6 @@ impl<T: ?Sized> Arc<T> { /// 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 e0ff3a1bca0..9649d0f71a1 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -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 @@ -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 } |
