summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-10-01 12:47:02 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-10-01 15:12:09 -0700
commitb18320446e553a3f8436f87306dded57e16a4b94 (patch)
treeabdcb49970d3dbf041decc79adc86db55d0c25b8 /src/libsyntax/ext
parent72ae42627b023a6f453316df7735fd9cb4e9283b (diff)
downloadrust-b18320446e553a3f8436f87306dded57e16a4b94.tar.gz
rust-b18320446e553a3f8436f87306dded57e16a4b94.zip
Move over to calling ptr::addr_of
Everything should now call ptr::addr_of instead of
ptr::p2::addr_of. Only the pipes macro code when compiled
by stage0 will call ptr::p2::addr_of. Needs a snapshot to get
rid of that.
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/fmt.rs2
-rw-r--r--src/libsyntax/ext/pipes/pipec.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/fmt.rs b/src/libsyntax/ext/fmt.rs
index 619511f0454..ea493eab561 100644
--- a/src/libsyntax/ext/fmt.rs
+++ b/src/libsyntax/ext/fmt.rs
@@ -188,7 +188,7 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span,
             return make_conv_call(cx, arg.span, ~"float", cnv, arg);
           }
           TyPoly => return make_conv_call(cx, arg.span, ~"poly", cnv,
-                                          mk_addr_of(cx, sp, arg))
+                       mk_addr_of(cx, sp, arg))
         }
     }
     fn log_conv(c: Conv) {
diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs
index cec2972b2a7..9c10d228a23 100644
--- a/src/libsyntax/ext/pipes/pipec.rs
+++ b/src/libsyntax/ext/pipes/pipec.rs
@@ -71,10 +71,10 @@ impl message: gen_send {
 
                 body += ~"let b = pipe.reuse_buffer();\n";
                 body += fmt!("let %s = pipes::SendPacketBuffered(\
-                              ptr::p2::addr_of(&(b.buffer.data.%s)));\n",
+                              ptr::addr_of(&(b.buffer.data.%s)));\n",
                              sp, next.name);
                 body += fmt!("let %s = pipes::RecvPacketBuffered(\
-                              ptr::p2::addr_of(&(b.buffer.data.%s)));\n",
+                              ptr::addr_of(&(b.buffer.data.%s)));\n",
                              rp, next.name);
             }
             else {
@@ -351,7 +351,7 @@ impl protocol: gen_init {
                         fmt!("data.%s.set_buffer_(buffer)",
                              s.name))),
                 ext_cx.parse_expr(
-                    fmt!("ptr::p2::addr_of(&(data.%s))",
+                    fmt!("ptr::addr_of(&(data.%s))",
                          self.states[0].name))));
 
         #ast {{