about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-06-16 23:00:49 -0700
committerCorey Richardson <corey@octayn.net>2014-07-09 00:06:29 -0700
commitae9a92bd4ef25b8aba0ef06e7ad26319691e9e5a (patch)
treea8a83cb164bc4c1ba6c214b7d43fa545d9b221a3 /src/libsyntax/parse
parentb0303b3c22eeb602ed8d51a267f52306aadc9322 (diff)
downloadrust-ae9a92bd4ef25b8aba0ef06e7ad26319691e9e5a.tar.gz
rust-ae9a92bd4ef25b8aba0ef06e7ad26319691e9e5a.zip
syntax: use a better Show impl for Ident
Rather than just dumping the id in the interner, which is useless, actually
print the interned string. Adjust the lexer logging to use Show instead of
Poly.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs
index 43bbba85271..41035ffe89e 100644
--- a/src/libsyntax/parse/lexer/mod.rs
+++ b/src/libsyntax/parse/lexer/mod.rs
@@ -90,7 +90,7 @@ impl<'a> Reader for TtReader<'a> {
     }
     fn next_token(&mut self) -> TokenAndSpan {
         let r = tt_next_token(self);
-        debug!("TtReader: r={:?}", r);
+        debug!("TtReader: r={}", r);
         r
     }
     fn fatal(&self, m: &str) -> ! {