Skip to content

Commit 202c8fd

Browse files
committed
Kill bootstrapping code in ptr
1 parent 65c96f8 commit 202c8fd

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/libcore/ptr.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ extern mod rusti {
3131
#[inline(always)]
3232
pub pure fn addr_of<T>(val: &T) -> *T { unsafe { rusti::addr_of(*val) } }
3333

34-
pub mod p2 {
35-
/// Get an unsafe pointer to a value
36-
#[inline(always)]
37-
pub pure fn addr_of<T>(val: &T) -> *T { unsafe { rusti::addr_of(*val) } }
38-
}
39-
4034
/// Get an unsafe mut pointer to a value
4135
#[inline(always)]
4236
pub pure fn mut_addr_of<T>(val: &T) -> *mut T {

src/libstd/uv_iotask.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// tjc: forbid deprecated modes again after a snapshot
99

1010
use libc::c_void;
11-
use ptr::p2::addr_of;
11+
use ptr::addr_of;
1212
use comm = core::comm;
1313
use comm::{Port, Chan, listen};
1414
use task::TaskBuilder;

0 commit comments

Comments
 (0)