summary refs log tree commit diff
path: root/src/libsyntax/parse/token.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-12-04 10:50:00 -0800
committerPatrick Walton <pcwalton@mimiga.net>2012-12-04 14:19:19 -0800
commit56ece46f7de9d1703dd39f952afac9bed22633b6 (patch)
treeede7f9ee4631628cc8603e692a0a3c1c5a00577e /src/libsyntax/parse/token.rs
parent94be14516968501306f1ed95774a3f227956e809 (diff)
downloadrust-56ece46f7de9d1703dd39f952afac9bed22633b6.tar.gz
rust-56ece46f7de9d1703dd39f952afac9bed22633b6.zip
librustc: Remove all legacy pattern bindings from libsyntax and librustc. rs=refactoring
Diffstat (limited to 'src/libsyntax/parse/token.rs')
-rw-r--r--src/libsyntax/parse/token.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 684c8414a01..a0aecd0375e 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -190,9 +190,9 @@ fn to_str(in: @ident_interner, t: Token) -> ~str {
       /* Other */
       DOC_COMMENT(s) => *in.get(s),
       EOF => ~"<eof>",
-      INTERPOLATED(nt) => {
+      INTERPOLATED(ref nt) => {
         ~"an interpolated " +
-            match nt {
+            match (*nt) {
               nt_item(*) => ~"item",
               nt_block(*) => ~"block",
               nt_stmt(*) => ~"statement",