diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 608cbdf84a2..ffa11dcfc75 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -31,12 +31,6 @@ fn memset(dest: *mut c_void, c: libc::c_int, #[inline(always)] pub pure fn addr_of(val: &T) -> *T { unsafe { rusti::addr_of(*val) } } -pub mod p2 { - /// Get an unsafe pointer to a value - #[inline(always)] - pub pure fn addr_of(val: &T) -> *T { unsafe { rusti::addr_of(*val) } } -} - /// Get an unsafe mut pointer to a value #[inline(always)] pub pure fn mut_addr_of(val: &T) -> *mut T { diff --git a/src/libstd/uv_iotask.rs b/src/libstd/uv_iotask.rs index ca4d655db59..2e31e15a70d 100644 --- a/src/libstd/uv_iotask.rs +++ b/src/libstd/uv_iotask.rs @@ -8,7 +8,7 @@ // tjc: forbid deprecated modes again after a snapshot use libc::c_void; -use ptr::p2::addr_of; +use ptr::addr_of; use comm = core::comm; use comm::{Port, Chan, listen}; use task::TaskBuilder;