summary refs log tree commit diff
path: root/src/comp/syntax/print
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-11-15 16:45:14 +0100
committerMarijn Haverbeke <marijnh@gmail.com>2011-11-18 10:52:28 +0100
commit9cf48d3753e48ec37116d00cd3d4be12b5f71b5a (patch)
tree28a5f1638ca628eb49355cf284e464b273144f2f /src/comp/syntax/print
parenteff7fae7b94b75ee075384b98955f45f56420a5f (diff)
downloadrust-9cf48d3753e48ec37116d00cd3d4be12b5f71b5a.tar.gz
rust-9cf48d3753e48ec37116d00cd3d4be12b5f71b5a.zip
Preparation for kind system overhaul
This goes before a snapshot, so that subsequenct patches can make the
transition without breaking the build. Disables kind checking pass, makes
parser accept both new and old-style kind annotation.

Issue #1177
Diffstat (limited to 'src/comp/syntax/print')
-rw-r--r--src/comp/syntax/print/pprust.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs
index 97c90d2c9a8..b5c466bd308 100644
--- a/src/comp/syntax/print/pprust.rs
+++ b/src/comp/syntax/print/pprust.rs
@@ -1168,10 +1168,10 @@ fn print_arg_mode(s: ps, m: ast::mode) {
 
 fn print_kind(s: ps, kind: ast::plicit<ast::kind>) {
     alt kind {
+      ast::explicit(ast::kind_sendable.) { word_nbsp(s, "send"); }
+      ast::explicit(ast::kind_copyable.) { word_nbsp(s, "copy"); }
+      ast::explicit(ast::kind_noncopyable.) { word_nbsp(s, "nocopy"); }
       ast::implicit(_) {}
-      ast::explicit(ast::kind_unique.) { word_nbsp(s, "uniq"); }
-      ast::explicit(ast::kind_pinned.) { word_nbsp(s, "pin"); }
-      ast::explicit(ast::kind_shared.) { word_nbsp(s, "shar"); }
     }
 }