]> git.lizzy.rs Git - rust.git/commit
std: Second pass stabilization for `boxed`
authorAlex Crichton <alex@alexcrichton.com>
Fri, 2 Jan 2015 06:24:06 +0000 (22:24 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 2 Jan 2015 06:31:53 +0000 (22:31 -0800)
commitf2ccdfd8914b7b8f8f8f2053f9ecd98d54ef95a6
treec4b42e27633b47edf08b898f565eab5b38493541
parentcd614164e692cca3a1460737f581fcb6d4630baf
std: Second pass stabilization for `boxed`

This commit performs a second pass over the `std::boxed` module, taking the
following actions:

* `boxed` is now stable
* `Box` is now stable
* `BoxAny` is removed in favor of a direct `impl Box<Any>`
* `Box::downcast` remains unstable while the name of the `downcast` family of
  methods is determined.

This is a breaking change due to the removal of the `BoxAny` trait (note that
the `downcast` method still exists), and existing consumers of `BoxAny` simply
need to remove the import in their modules.

[breaking-change]
src/liballoc/boxed.rs
src/librustc_typeck/coherence/orphan.rs