diff options
| author | Thayne McCombs <astrothayne@gmail.com> | 2018-07-06 01:00:40 -0600 |
|---|---|---|
| committer | Thayne McCombs <astrothayne@gmail.com> | 2018-07-06 01:00:40 -0600 |
| commit | 7fbc3895e359b9212bc0a78692198f15bbe462b5 (patch) | |
| tree | 461c73c2565232f33e1b96df6f767e152d42c448 /src/liballoc | |
| parent | a8403e1cda2e0cba4f2c7282ab5adb5392bef473 (diff) | |
| download | rust-7fbc3895e359b9212bc0a78692198f15bbe462b5.tar.gz rust-7fbc3895e359b9212bc0a78692198f15bbe462b5.zip | |
Stabilize rc_downcast
Fixes #44608
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/rc.rs | 3 | ||||
| -rw-r--r-- | src/liballoc/sync.rs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 32d624e8fbc..357bc8ba2dd 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -620,13 +620,12 @@ impl<T: Clone> Rc<T> { impl Rc<Any> { #[inline] - #[unstable(feature = "rc_downcast", issue = "44608")] + #[stable(feature = "rc_downcast", since = "1.29.0")] /// Attempt to downcast the `Rc<Any>` to a concrete type. /// /// # Examples /// /// ``` - /// #![feature(rc_downcast)] /// use std::any::Any; /// use std::rc::Rc; /// diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs index 2abd9c85c57..dcc3560a070 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -981,13 +981,12 @@ unsafe impl<#[may_dangle] T: ?Sized> Drop for Arc<T> { impl Arc<Any + Send + Sync> { #[inline] - #[unstable(feature = "rc_downcast", issue = "44608")] + #[stable(feature = "rc_downcast", since = "1.29.0")] /// Attempt to downcast the `Arc<Any + Send + Sync>` to a concrete type. /// /// # Examples /// /// ``` - /// #![feature(rc_downcast)] /// use std::any::Any; /// use std::sync::Arc; /// |
