Skip to content

Commit 7fbc389

Browse files
committed
Stabilize rc_downcast
Fixes #44608
1 parent a8403e1 commit 7fbc389

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
@@ -981,13 +981,12 @@ unsafe impl<#[may_dangle] T: ?Sized> Drop for Arc<T> {
981981

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

0 commit comments

Comments
 (0)