summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-31 10:15:32 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-31 15:49:11 -0700
commitd03120afd36f9e3f4c1305e9e5ca0d24a3b4a32f (patch)
treef0eaf7535052e2be593c04d55b42ba1c019497c9 /src/libcore
parent890f0ab10a81720606805db36628f61f29d0e816 (diff)
parentf19e763e0824a73118ed715f526cb7bdd584d4c4 (diff)
downloadrust-d03120afd36f9e3f4c1305e9e5ca0d24a3b4a32f.tar.gz
rust-d03120afd36f9e3f4c1305e9e5ca0d24a3b4a32f.zip
rollup merge of #23876: alexcrichton/stabilize-any
This commit stabilizes the following APIs:

* `TypeId::of` - now that it has an `Any` bound it's ready to be stable.
* `Box<Any>::downcast` - now that an inherent impl on `Box<Any>` as well as
  `Box<Any+Send>` is allowed the `BoxAny` trait is removed in favor of these
  inherent methods.

This is a breaking change due to the removal of the `BoxAny` trait, but
consumers can simply remove imports to fix crates.

[breaking-change]
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/any.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/any.rs b/src/libcore/any.rs
index d3bc07b173a..0ffc4a229b5 100644
--- a/src/libcore/any.rs
+++ b/src/libcore/any.rs
@@ -202,8 +202,7 @@ pub struct TypeId {
 impl TypeId {
     /// Returns the `TypeId` of the type this generic function has been
     /// instantiated with
-    #[unstable(feature = "core",
-               reason = "may grow a `Reflect` bound soon via marker traits")]
+    #[stable(feature = "rust1", since = "1.0.0")]
     pub fn of<T: ?Sized + Any>() -> TypeId {
         TypeId {
             t: unsafe { intrinsics::type_id::<T>() },