]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12667 : Kimundi/rust/any_improv, r=cmr
authorbors <bors@rust-lang.org>
Tue, 4 Mar 2014 21:16:41 +0000 (13:16 -0800)
committerbors <bors@rust-lang.org>
Tue, 4 Mar 2014 21:16:41 +0000 (13:16 -0800)
- Added `TraitObject` representation to `std::raw`.
- Added doc to `std::raw`.
- Removed `Any::as_void_ptr()` and `Any::as_mut_void_ptr()`
  methods as they are uneccessary now after the removal of
  headers on owned boxes. This reduces the number of virtual calls needed from 2 to 1.
- Made the `..Ext` implementations work directly with the repr of
  a trait object.
- Removed `Any`-related traits from the prelude.
- Added bench.

Bench before/after:
~~~
7 ns/iter (+/- 0)
4 ns/iter (+/- 0)
~~~

1  2 
src/librustc/lib.rs

Simple merge