diff options
| author | bors <bors@rust-lang.org> | 2014-03-04 13:16:41 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-04 13:16:41 -0800 |
| commit | 0a5138c75244ffc0bc639d3060566e8efc83748e (patch) | |
| tree | 1d6f2aa69b5fac73270b2ed5d803ff2a06646ca2 /src/libserialize | |
| parent | a15448c85a557a2b047e4ed94fb36000320cccb5 (diff) | |
| parent | 3158047a459b6d60d0f8f6bf5c299db0910e029a (diff) | |
auto merge of #12667 : Kimundi/rust/any_improv, r=cmr
- 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) ~~~
Diffstat (limited to 'src/libserialize')
| -rw-r--r-- | src/libserialize/json.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserialize/json.rs b/src/libserialize/json.rs index 5fd5767d890..517f4e9ab69 100644 --- a/src/libserialize/json.rs +++ b/src/libserialize/json.rs @@ -2229,6 +2229,7 @@ mod tests { B(~str) } fn check_err<T: Decodable<Decoder>>(to_parse: &'static str, expected_error: &str) { + use std::any::AnyRefExt; use std::task; let res = task::try(proc() { // either fails in `decode` (which is what we want), or |
