summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-08-03 11:22:35 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-08-03 11:22:35 -0700
commitdfe1f6260e7e076114b95b42053cf6dc4cbaca68 (patch)
tree62494df82d25e902d11e71ae5fab63088437ef90 /src/libsyntax/ext
parentb3933b88220b3a63f2a61b6769492898f718f1b4 (diff)
downloadrust-dfe1f6260e7e076114b95b42053cf6dc4cbaca68.tar.gz
rust-dfe1f6260e7e076114b95b42053cf6dc4cbaca68.zip
rustc: Remove all fixed-length strings from our codebase
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};