diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2019-01-29 22:34:35 +0100 |
|---|---|---|
| committer | Jonas Schievink <jonasschievink@gmail.com> | 2019-01-29 22:34:35 +0100 |
| commit | 0d314f08af086afd7a67131a621f861b2633d6d3 (patch) | |
| tree | bbcaee4aad711b54a1bffef05be40abfd3739cae | |
| parent | b664341d917cafade5a2470579a4c122fdcf941b (diff) | |
| download | rust-0d314f08af086afd7a67131a621f861b2633d6d3.tar.gz rust-0d314f08af086afd7a67131a621f861b2633d6d3.zip | |
Add tracking issue to unstable attribute
| -rw-r--r-- | src/liballoc/rc.rs | 4 | ||||
| -rw-r--r-- | src/liballoc/sync.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 72b43b5d6ad..235a89c9e9d 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -1289,7 +1289,7 @@ impl<T: ?Sized> Weak<T> { /// If `self` was created using [`Weak::new`], this will return 0. /// /// [`Weak::new`]: #method.new - #[unstable(feature = "weak_counts", issue = "0")] + #[unstable(feature = "weak_counts", issue = "57977")] pub fn strong_count(&self) -> usize { if let Some(inner) = self.inner() { inner.strong() @@ -1305,7 +1305,7 @@ impl<T: ?Sized> Weak<T> { /// value. /// /// [`Weak::new`]: #method.new - #[unstable(feature = "weak_counts", issue = "0")] + #[unstable(feature = "weak_counts", issue = "57977")] pub fn weak_count(&self) -> Option<usize> { self.inner().map(|inner| { if inner.strong() > 0 { diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs index 777851e1925..d08aaa38a4c 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -1122,7 +1122,7 @@ impl<T: ?Sized> Weak<T> { /// If `self` was created using [`Weak::new`], this will return 0. /// /// [`Weak::new`]: #method.new - #[unstable(feature = "weak_counts", issue = "0")] + #[unstable(feature = "weak_counts", issue = "57977")] pub fn strong_count(&self) -> usize { if let Some(inner) = self.inner() { inner.strong.load(SeqCst) @@ -1145,7 +1145,7 @@ impl<T: ?Sized> Weak<T> { /// `Weak`s pointing to the same value. /// /// [`Weak::new`]: #method.new - #[unstable(feature = "weak_counts", issue = "0")] + #[unstable(feature = "weak_counts", issue = "57977")] pub fn weak_count(&self) -> Option<usize> { // Due to the implicit weak pointer added when any strong pointers are // around, we cannot implement `weak_count` correctly since it |
