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.
This commit is contained in:
Corey Richardson
2014-06-16 23:00:49 -07:00
parent b0303b3c22
commit ae9a92bd4e
2 changed files with 8 additions and 2 deletions

View File

@@ -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) -> ! {