diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-07-06 21:29:17 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-06 21:29:17 -0600 |
| commit | e3823388a8eed0cb64b37d8d80c09cc79f70e30c (patch) | |
| tree | 7548402391de2ca8267949dd8845373f8831a413 /src/liballoc | |
| parent | 96729336395864b677230295c33926e8b229241a (diff) | |
| parent | 7fbc3895e359b9212bc0a78692198f15bbe462b5 (diff) | |
| download | rust-e3823388a8eed0cb64b37d8d80c09cc79f70e30c.tar.gz rust-e3823388a8eed0cb64b37d8d80c09cc79f70e30c.zip | |
Rollup merge of #52103 - tmccombs:rc_downcast, r=Mark-Simulacrum
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 5b71d0b85a0..f7c12b98f48 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 6710878b31d..5a738fc5444 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -980,13 +980,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; /// |
