summary refs log tree commit diff
path: root/src/comp/syntax/print
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-08-15 15:35:40 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-08-15 15:44:41 -0700
commit814bf41d898cd0410873f6c05c03a2b34366bfde (patch)
treec281eaf689a64894ca2ac50ab00d69db4394d570 /src/comp/syntax/print
parent9ca8df93b318aa4dc721a187f1216ac7f3a6671b (diff)
downloadrust-814bf41d898cd0410873f6c05c03a2b34366bfde.tar.gz
rust-814bf41d898cd0410873f6c05c03a2b34366bfde.zip
Add operator 'copy', translates as fall-through.
Diffstat (limited to 'src/comp/syntax/print')
-rw-r--r--src/comp/syntax/print/pprust.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs
index 59781bdbfba..3835435777f 100644
--- a/src/comp/syntax/print/pprust.rs
+++ b/src/comp/syntax/print/pprust.rs
@@ -881,6 +881,10 @@ fn print_expr(s: &ps, expr: &@ast::expr) {
         ibox(s, 0u);
         print_block(s, blk);
       }
+      ast::expr_copy(e) {
+        word_space(s, "copy");
+        print_expr(s, e);
+      }
       ast::expr_move(lhs, rhs) {
         print_expr(s, lhs);
         space(s.s);