Fix panic when using debug

This commit is contained in:
Guillaume Gomez 2016-06-17 12:33:55 +02:00
parent be203ac258
commit 9ac3d9b63c
1 changed files with 1 additions and 1 deletions

View File

@ -1031,7 +1031,7 @@ impl<'a> State<'a> {
try!(word(&mut self.s, "_"));
}
ast::TyKind::ImplicitSelf => {
unreachable!();
try!(word(&mut self.s, "Self"));
}
ast::TyKind::Mac(ref m) => {
try!(self.print_mac(m, token::Paren));