Kill bootstrapping code in ptr

This commit is contained in:
Tim Chevalier 2012-10-03 14:57:02 -07:00
parent 65c96f849f
commit 202c8fd0eb
2 changed files with 1 additions and 7 deletions

View File

@ -31,12 +31,6 @@ fn memset(dest: *mut c_void, c: libc::c_int,
#[inline(always)]
pub pure fn addr_of<T>(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<T>(val: &T) -> *T { unsafe { rusti::addr_of(*val) } }
}
/// Get an unsafe mut pointer to a value
#[inline(always)]
pub pure fn mut_addr_of<T>(val: &T) -> *mut T {

View File

@ -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;