Skip to content

Commit 4c8d75f

Browse files
committed
don't do deprecations yet
1 parent 5bbaa3c commit 4c8d75f

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/liballoc/arc.rs

-2
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,13 @@ impl<T: ?Sized> Arc<T> {
270270
/// Get the number of weak references to this value.
271271
#[inline]
272272
#[unstable(feature = "arc_counts", reason = "not clearly useful, and racy", issue = "27718")]
273-
#[deprecated(since = "1.4.0", reason = "not clearly useful, and racy")]
274273
pub fn weak_count(this: &Self) -> usize {
275274
this.inner().weak.load(SeqCst) - 1
276275
}
277276

278277
/// Get the number of strong references to this value.
279278
#[inline]
280279
#[unstable(feature = "arc_counts", reason = "not clearly useful, and racy", issue = "27718")]
281-
#[deprecated(since = "1.4.0", reason = "not clearly useful, and racy")]
282280
pub fn strong_count(this: &Self) -> usize {
283281
this.inner().strong.load(SeqCst)
284282
}

src/liballoc/rc.rs

-3
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,11 @@ impl<T: ?Sized> Rc<T> {
292292
/// Get the number of weak references to this value.
293293
#[inline]
294294
#[unstable(feature = "rc_counts", reason = "not clearly useful", issue = "27718")]
295-
#[deprecated(since = "1.4.0", reason = "not clearly useful")]
296295
pub fn weak_count(this: &Self) -> usize { this.weak() - 1 }
297296

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

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

0 commit comments

Comments
 (0)