about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2017-04-20 14:02:20 -0700
committerJosh Stone <jistone@redhat.com>2017-04-20 21:16:31 -0700
commitf0c5e8b8fc6d3631de39cfc250868da993ff4086 (patch)
tree69df993022fdeda96172556df10f9c549eee40c3 /src/liballoc
parentf4aaae9bdbca695d8d60feaa63cb09cf06598d50 (diff)
downloadrust-f0c5e8b8fc6d3631de39cfc250868da993ff4086.tar.gz
rust-f0c5e8b8fc6d3631de39cfc250868da993ff4086.zip
Privatize Rc::is_unique
[unstable, deprecated since 1.15.0]
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/rc.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index dab6cf011bd..b12d89867c8 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -488,11 +488,7 @@ impl<T: ?Sized> Rc<T> {
     ///
     /// [weak]: struct.Weak.html
     #[inline]
-    #[unstable(feature = "is_unique", reason = "uniqueness has unclear meaning",
-               issue = "28356")]
-    #[rustc_deprecated(since = "1.15.0",
-                       reason = "too niche; use `strong_count` and `weak_count` instead")]
-    pub fn is_unique(this: &Self) -> bool {
+    fn is_unique(this: &Self) -> bool {
         Rc::weak_count(this) == 0 && Rc::strong_count(this) == 1
     }