Skip to content

Commit e382338

Browse files
Rollup merge of rust-lang#52103 - tmccombs:rc_downcast, r=Mark-Simulacrum
Stabilize rc_downcast Fixes rust-lang#44608
2 parents 9672933 + 7fbc389 commit e382338

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/liballoc/rc.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -620,13 +620,12 @@ impl<T: Clone> Rc<T> {
620620

621621
impl Rc<Any> {
622622
#[inline]
623-
#[unstable(feature = "rc_downcast", issue = "44608")]
623+
#[stable(feature = "rc_downcast", since = "1.29.0")]
624624
/// Attempt to downcast the `Rc<Any>` to a concrete type.
625625
///
626626
/// # Examples
627627
///
628628
/// ```
629-
/// #![feature(rc_downcast)]
630629
/// use std::any::Any;
631630
/// use std::rc::Rc;
632631
///

src/liballoc/sync.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -980,13 +980,12 @@ unsafe impl<#[may_dangle] T: ?Sized> Drop for Arc<T> {
980980

981981
impl Arc<Any + Send + Sync> {
982982
#[inline]
983-
#[unstable(feature = "rc_downcast", issue = "44608")]
983+
#[stable(feature = "rc_downcast", since = "1.29.0")]
984984
/// Attempt to downcast the `Arc<Any + Send + Sync>` to a concrete type.
985985
///
986986
/// # Examples
987987
///
988988
/// ```
989-
/// #![feature(rc_downcast)]
990989
/// use std::any::Any;
991990
/// use std::sync::Arc;
992991
///

0 commit comments

Comments
 (0)