From 3158047a459b6d60d0f8f6bf5c299db0910e029a Mon Sep 17 00:00:00 2001 From: Marvin Löbel Date: Mon, 3 Mar 2014 01:01:13 +0100 Subject: Cleaned up `std::any` - 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. - Made the `..Ext` implementations work directly with the repr of a trait object. - Removed `Any`-related traits from the prelude. - Added bench for `Any` --- src/libnative/task.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libnative') diff --git a/src/libnative/task.rs b/src/libnative/task.rs index 5682697ebfc..aa3afd4c1a5 100644 --- a/src/libnative/task.rs +++ b/src/libnative/task.rs @@ -14,6 +14,7 @@ //! by rust tasks. This implements the necessary API traits laid out by std::rt //! in order to spawn new tasks and deschedule the current task. +use std::any::Any; use std::cast; use std::rt::env; use std::rt::local::Local; -- cgit 1.4.1-3-g733a5