Skip to content

Commit

Permalink
Rollup merge of rust-lang#52103 - tmccombs:rc_downcast, r=Mark-Simula…
Browse files Browse the repository at this point in the history
…crum

Stabilize rc_downcast

Fixes rust-lang#44608
  • Loading branch information
Mark-Simulacrum authored Jul 7, 2018
2 parents 9672933 + 7fbc389 commit e382338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/liballoc/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
///
Expand Down
3 changes: 1 addition & 2 deletions src/liballoc/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
///
Expand Down

0 comments on commit e382338

Please sign in to comment.