diff --git a/src/libstd/pipes.rs b/src/libstd/pipes.rs index 365e192da66..fe1b834813e 100644 --- a/src/libstd/pipes.rs +++ b/src/libstd/pipes.rs @@ -94,7 +94,7 @@ use unstable::finally::Finally; use unstable::intrinsics; use ptr; -use ptr::Ptr; +use ptr::RawPtr; use task; use vec; use vec::OwnedVector; diff --git a/src/libstd/prelude.rs b/src/libstd/prelude.rs index 87430e3390a..b883f752e3c 100644 --- a/src/libstd/prelude.rs +++ b/src/libstd/prelude.rs @@ -43,7 +43,7 @@ pub use path::Path; pub use path::PosixPath; pub use path::WindowsPath; -pub use ptr::Ptr; +pub use ptr::RawPtr; pub use ascii::{Ascii, AsciiCast, OwnedAsciiCast, AsciiStr}; pub use str::{StrVector, StrSlice, OwnedStr, StrUtil}; pub use from_str::{FromStr}; diff --git a/src/libstd/ptr.rs b/src/libstd/ptr.rs index 1d9a9b9be36..c656a3eef62 100644 --- a/src/libstd/ptr.rs +++ b/src/libstd/ptr.rs @@ -296,7 +296,7 @@ pub unsafe fn array_each(arr: **T, cb: &fn(*T)) { } #[allow(missing_doc)] -pub trait Ptr { +pub trait RawPtr { fn is_null(&const self) -> bool; fn is_not_null(&const self) -> bool; unsafe fn to_option(&const self) -> Option<&T>; @@ -304,7 +304,7 @@ pub trait Ptr { } /// Extension methods for immutable pointers -impl Ptr for *T { +impl RawPtr for *T { /// Returns true if the pointer is equal to the null pointer. #[inline(always)] fn is_null(&const self) -> bool { is_null(*self) } @@ -336,7 +336,7 @@ fn offset(&self, count: uint) -> *T { offset(*self, count) } } /// Extension methods for mutable pointers -impl Ptr for *mut T { +impl RawPtr for *mut T { /// Returns true if the pointer is equal to the null pointer. #[inline(always)] fn is_null(&const self) -> bool { is_null(*self) } diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index 2fac1df01a4..f6017b92807 100644 --- a/src/libstd/rt/mod.rs +++ b/src/libstd/rt/mod.rs @@ -56,7 +56,7 @@ #[doc(hidden)]; -use ptr::Ptr; +use ptr::RawPtr; /// The global (exchange) heap. pub mod global_heap; diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs index fa4b8f30f4e..b0e87a62c8b 100644 --- a/src/libstd/rt/stack.rs +++ b/src/libstd/rt/stack.rs @@ -9,7 +9,7 @@ // except according to those terms. use container::Container; -use ptr::Ptr; +use ptr::RawPtr; use vec; use ops::Drop; use libc::{c_uint, uintptr_t}; diff --git a/src/libstd/rt/uv/mod.rs b/src/libstd/rt/uv/mod.rs index bc968fc3d60..84d1e65454f 100644 --- a/src/libstd/rt/uv/mod.rs +++ b/src/libstd/rt/uv/mod.rs @@ -38,7 +38,7 @@ use option::*; use str::raw::from_c_str; use to_str::ToStr; -use ptr::Ptr; +use ptr::RawPtr; use libc; use vec; use ptr; diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 961d93823ad..b7de9e20559 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -30,7 +30,7 @@ use option::{None, Option, Some}; use old_iter::{BaseIter, EqIter}; use ptr; -use ptr::Ptr; +use ptr::RawPtr; use str; use to_str::ToStr; use uint; diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index b748ca54cf4..255dc1c95f7 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -26,7 +26,7 @@ use option::{None, Option, Some}; use ptr::to_unsafe_ptr; use ptr; -use ptr::Ptr; +use ptr::RawPtr; use sys; use uint; use unstable::intrinsics;