We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c96f8 commit 202c8fdCopy full SHA for 202c8fd
src/libcore/ptr.rs
@@ -31,12 +31,6 @@ extern mod rusti {
31
#[inline(always)]
32
pub pure fn addr_of<T>(val: &T) -> *T { unsafe { rusti::addr_of(*val) } }
33
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
-
40
/// Get an unsafe mut pointer to a value
41
42
pub pure fn mut_addr_of<T>(val: &T) -> *mut T {
src/libstd/uv_iotask.rs
@@ -8,7 +8,7 @@
8
// tjc: forbid deprecated modes again after a snapshot
9
10
use libc::c_void;
11
-use ptr::p2::addr_of;
+use ptr::addr_of;
12
use comm = core::comm;
13
use comm::{Port, Chan, listen};
14
use task::TaskBuilder;
0 commit comments