summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-08-15 16:22:40 -0700
committerBrian Anderson <banderson@mozilla.com>2012-08-15 16:53:41 -0700
commit913f7bdae744f88110eaca73fb28e4b8e987456c (patch)
tree6c5d487095cac36bffce7b228cc78d25c0b19a60 /src/libsyntax/ext
parente1b11aaf4b44152317e1607a959100c12bf24c54 (diff)
downloadrust-913f7bdae744f88110eaca73fb28e4b8e987456c.tar.gz
rust-913f7bdae744f88110eaca73fb28e4b8e987456c.zip
Modify pipec to not emit calls to some and none
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/pipes/pipec.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs
index 5c5147741db..8bd0d3313d5 100644
--- a/src/libsyntax/ext/pipes/pipec.rs
+++ b/src/libsyntax/ext/pipes/pipec.rs
@@ -104,8 +104,8 @@ impl message: gen_send {
             }
             else {
                 body += fmt!("if pipes::send(pipe, message) {\n \
-                                  some(c) \
-                              } else { none } }");
+                                  pipes::rt::make_some(c) \
+                              } else { pipes::rt::make_none() } }");
             }
 
             let body = cx.parse_expr(body);
@@ -163,8 +163,8 @@ impl message: gen_send {
                     body += ~" }";
                 } else {
                     body += fmt!("if pipes::send(pipe, message) { \
-                                      some(()) \
-                                  } else { none } }");
+                                      pipes::rt::make_some(()) \
+                                  } else { pipes::rt::make_none() } }");
                 }
 
                 let body = cx.parse_expr(body);