diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2014-03-03 01:01:13 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2014-03-04 21:10:23 +0100 |
| commit | 3158047a459b6d60d0f8f6bf5c299db0910e029a (patch) | |
| tree | 5af0a174d8541414b399a72ab8e9ae1115e17cc6 /src/libnative | |
| parent | 19fadf6567859bd46d3235c29d61917efc0e0685 (diff) | |
| download | rust-3158047a459b6d60d0f8f6bf5c299db0910e029a.tar.gz rust-3158047a459b6d60d0f8f6bf5c299db0910e029a.zip | |
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`
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/task.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
