about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/pipes/pipec.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs
index 00fd5d41f93..81c8ba9da50 100644
--- a/src/libsyntax/ext/pipes/pipec.rs
+++ b/src/libsyntax/ext/pipes/pipec.rs
@@ -71,13 +71,13 @@ impl compile of gen_send for message {
 
             if this.proto.is_bounded() {
                 let (sp, rp) = alt (this.dir, next.dir) {
-                  (send, send) { ("c", "s") }
-                  (send, recv) { ("s", "c") }
-                  (recv, send) { ("s", "c") }
-                  (recv, recv) { ("c", "s") }
+                  (send, send) { (~"c", ~"s") }
+                  (send, recv) { (~"s", ~"c") }
+                  (recv, send) { (~"s", ~"c") }
+                  (recv, recv) { (~"c", ~"s") }
                 };
 
-                body += "let b = pipe.reuse_buffer();\n";
+                body += ~"let b = pipe.reuse_buffer();\n";
                 body += fmt!{"let %s = pipes::send_packet_buffered(\
                               ptr::addr_of(b.buffer.data.%s));\n",
                              sp, *next.name};