Rename OwnedPtr to UniquePtr
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user