Kill bootstrapping code in ptr
This commit is contained in:
parent
65c96f849f
commit
202c8fd0eb
2 changed files with 1 additions and 7 deletions
|
@ -31,12 +31,6 @@ extern mod rusti {
|
|||
#[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…
Add table
Add a link
Reference in a new issue