about summary refs log tree commit diff
path: root/src/libstd/task.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-13 14:58:29 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-13 17:24:07 -0700
commitcbc31df4fc084b47a5c6456df2efb6e28b82a7da (patch)
treed978963435cc73d848ff8b936e9b0dba050b482b /src/libstd/task.rs
parentcb115ac2d4f57d8b590c8d46d8f9e2958ed9a527 (diff)
downloadrust-cbc31df4fc084b47a5c6456df2efb6e28b82a7da.tar.gz
rust-cbc31df4fc084b47a5c6456df2efb6e28b82a7da.zip
std: Move the owned module from core to std
The compiler was updated to recognize that implementations for ty_uniq(..) are
allowed if the Box lang item is located in the current crate. This enforces the
idea that libcore cannot allocated, and moves all related trait implementations
from libcore to libstd.

This is a breaking change in that the AnyOwnExt trait has moved from the any
module to the owned module. Any previous users of std::any::AnyOwnExt should now
use std::owned::AnyOwnExt instead. This was done because the trait is intended
for Box traits and only Box traits.

[breaking-change]
Diffstat (limited to 'src/libstd/task.rs')
-rw-r--r--src/libstd/task.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/task.rs b/src/libstd/task.rs
index 2f7b31ae31d..7fb61c29112 100644
--- a/src/libstd/task.rs
+++ b/src/libstd/task.rs
@@ -47,10 +47,11 @@ use rt::local::Local;
 use rt::task::Task;
 use str::{Str, SendStr, IntoMaybeOwned};
 
-#[cfg(test)] use any::{AnyOwnExt, AnyRefExt};
+#[cfg(test)] use any::AnyRefExt;
+#[cfg(test)] use owned::AnyOwnExt;
+#[cfg(test)] use realstd::result::ResultUnwrap;
 #[cfg(test)] use result;
 #[cfg(test)] use str::StrAllocating;
-#[cfg(test)] use realstd::result::ResultUnwrap;
 
 /// Indicates the manner in which a task exited.
 ///