diff options
| author | Corey Richardson <corey@octayn.net> | 2014-06-16 23:00:49 -0700 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2014-07-09 00:06:29 -0700 |
| commit | ae9a92bd4ef25b8aba0ef06e7ad26319691e9e5a (patch) | |
| tree | a8a83cb164bc4c1ba6c214b7d43fa545d9b221a3 /src/libsyntax/parse | |
| parent | b0303b3c22eeb602ed8d51a267f52306aadc9322 (diff) | |
| download | rust-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.rs | 2 |
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) -> ! { |
