about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-30 16:43:04 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-30 16:44:11 -0700
commitf19e763e0824a73118ed715f526cb7bdd584d4c4 (patch)
treeaa5b0028c6a860598762a78a6db987a63593868a /src/libstd/thread
parent6cf3b0b74aadcc1fe87adbd2c74876a1f6c920b3 (diff)
downloadrust-f19e763e0824a73118ed715f526cb7bdd584d4c4.tar.gz
rust-f19e763e0824a73118ed715f526cb7bdd584d4c4.zip
std: Stabilize the rest of Any/BoxAny
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/libstd/thread')
-rw-r--r--src/libstd/thread/mod.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs
index 074030bd07b..863291ff542 100644
--- a/src/libstd/thread/mod.rs
+++ b/src/libstd/thread/mod.rs
@@ -810,7 +810,6 @@ mod test {
 
     use any::Any;
     use sync::mpsc::{channel, Sender};
-    use boxed::BoxAny;
     use result;
     use std::old_io::{ChanReader, ChanWriter};
     use super::{Builder};