Kill bootstrapping code in ptr
This commit is contained in:
parent
65c96f849f
commit
202c8fd0eb
@ -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 {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user