Skip to content

Commit 9ac3d9b

Browse files
Fix panic when using debug
1 parent be203ac commit 9ac3d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/print/pprust.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ impl<'a> State<'a> {
10311031
try!(word(&mut self.s, "_"));
10321032
}
10331033
ast::TyKind::ImplicitSelf => {
1034-
unreachable!();
1034+
try!(word(&mut self.s, "Self"));
10351035
}
10361036
ast::TyKind::Mac(ref m) => {
10371037
try!(self.print_mac(m, token::Paren));

0 commit comments

Comments
 (0)