Rename OwnedPtr to UniquePtr

This commit is contained in:
Flavio Percoco
2014-12-22 00:01:20 +01:00
parent fb803a8570
commit 686ce664da
12 changed files with 53 additions and 53 deletions

View File

@@ -19,7 +19,7 @@ use core::hash::{mod, Hash};
use core::kinds::Sized;
use core::mem;
use core::option::Option;
use core::ptr::OwnedPtr;
use core::ptr::UniquePtr;
use core::raw::TraitObject;
use core::result::Result;
use core::result::Result::{Ok, Err};
@@ -45,7 +45,7 @@ pub static HEAP: () = ();
/// A type that represents a uniquely-owned value.
#[lang = "owned_box"]
#[unstable = "custom allocators will add an additional type parameter (with default)"]
pub struct Box<T>(OwnedPtr<T>);
pub struct Box<T>(UniquePtr<T>);
#[stable]
impl<T: Default> Default for Box<T> {