1
Fork 0

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]
This commit is contained in:
Alex Crichton 2014-05-13 14:58:29 -07:00
parent cb115ac2d4
commit cbc31df4fc
14 changed files with 219 additions and 105 deletions

View file

@ -380,7 +380,7 @@ mod tests {
use mem::*;
use option::{Some,None};
use realstd::str::StrAllocating;
use owned::Box;
use realstd::owned::Box;
use raw;
#[test]