Stabilize rc_downcast

Fixes #44608
This commit is contained in:
Thayne McCombs
2018-07-06 01:00:40 -06:00
parent a8403e1cda
commit 7fbc3895e3
2 changed files with 2 additions and 4 deletions

View File

@@ -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;
///

View File

@@ -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;
///