about summary refs log tree commit diff
path: root/src/libsyntax/ext/pipes/pipec.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-12-04 10:50:00 -0800
committerPatrick Walton <pcwalton@mimiga.net>2012-12-04 14:19:19 -0800
commit56ece46f7de9d1703dd39f952afac9bed22633b6 (patch)
treeede7f9ee4631628cc8603e692a0a3c1c5a00577e /src/libsyntax/ext/pipes/pipec.rs
parent94be14516968501306f1ed95774a3f227956e809 (diff)
downloadrust-56ece46f7de9d1703dd39f952afac9bed22633b6.tar.gz
rust-56ece46f7de9d1703dd39f952afac9bed22633b6.zip
librustc: Remove all legacy pattern bindings from libsyntax and librustc. rs=refactoring
Diffstat (limited to 'src/libsyntax/ext/pipes/pipec.rs')
-rw-r--r--src/libsyntax/ext/pipes/pipec.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs
index 87db2b1cf63..1c4dd197105 100644
--- a/src/libsyntax/ext/pipes/pipec.rs
+++ b/src/libsyntax/ext/pipes/pipec.rs
@@ -55,10 +55,10 @@ impl message: gen_send {
     fn gen_send(cx: ext_ctxt, try: bool) -> @ast::item {
         debug!("pipec: gen_send");
         match self {
-          message(_id, span, tys, this,
-                  Some({state: next, tys: next_tys})) => {
+          message(ref _id, span, tys, this,
+                  Some({state: ref next, tys: next_tys})) => {
             debug!("pipec: next state exists");
-            let next = this.proto.get_state(next);
+            let next = this.proto.get_state((*next));
             assert next_tys.len() == next.ty_params.len();
             let arg_names = tys.mapi(|i, _ty| cx.ident_of(~"x_"+i.to_str()));
 
@@ -139,7 +139,7 @@ impl message: gen_send {
                             cx.expr_block(body))
           }
 
-            message(_id, span, tys, this, None) => {
+            message(ref _id, span, tys, this, None) => {
                 debug!("pipec: no next state");
                 let arg_names = tys.mapi(|i, _ty| (~"x_" + i.to_str()));
 
@@ -220,8 +220,8 @@ impl state: to_type_decls {
             let message(name, span, tys, this, next) = *m;
 
             let tys = match next {
-              Some({state: next, tys: next_tys}) => {
-                let next = this.proto.get_state(next);
+              Some({state: ref next, tys: next_tys}) => {
+                let next = this.proto.get_state((*next));
                 let next_name = cx.str_of(next.data_name());
 
                 let dir = match this.dir {