about summary refs log tree commit diff
path: root/src/liballoc/rc.rs
diff options
context:
space:
mode:
authorljedrz <ljedrz@gmail.com>2018-07-11 10:19:54 +0200
committerljedrz <ljedrz@gmail.com>2018-07-11 10:19:54 +0200
commit217f8fbd4512ebe94fb021ee564ea6c6dae6a919 (patch)
tree3287c0e80c7f60c13d56be5b2212e15de863c632 /src/liballoc/rc.rs
parentcd44b3ddaddf22ef3c3b00f31491c660b851f8ee (diff)
downloadrust-217f8fbd4512ebe94fb021ee564ea6c6dae6a919.tar.gz
rust-217f8fbd4512ebe94fb021ee564ea6c6dae6a919.zip
Revert borked changes in last commit.
Diffstat (limited to 'src/liballoc/rc.rs')
-rw-r--r--src/liballoc/rc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index 3643f78d323..d76acb28df9 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -618,7 +618,7 @@ impl<T: Clone> Rc<T> {
     }
 }
 
-impl Rc<Any> {
+impl Rc<dyn Any> {
     #[inline]
     #[stable(feature = "rc_downcast", since = "1.29.0")]
     /// Attempt to downcast the `Rc<Any>` to a concrete type.
@@ -641,7 +641,7 @@ impl Rc<Any> {
     ///     print_if_string(Rc::new(0i8));
     /// }
     /// ```
-    pub fn downcast<T: Any>(self) -> Result<Rc<T>, Rc<Any>> {
+    pub fn downcast<T: Any>(self) -> Result<Rc<T>, Rc<dyn Any>> {
         if (*self).is::<T>() {
             let ptr = self.ptr.cast::<RcBox<T>>();
             forget(self);