about summary refs log tree commit diff
path: root/src/libcore/iter.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/libcore/iter.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/libcore/iter.rs')
-rw-r--r--src/libcore/iter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs
index 10ae30cf39d..f6a77d6deca 100644
--- a/src/libcore/iter.rs
+++ b/src/libcore/iter.rs
@@ -2334,7 +2334,7 @@ mod tests {
     use realstd::num;
 
     use cmp;
-    use owned::Box;
+    use realstd::owned::Box;
     use uint;
 
     #[test]