diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-06-17 12:33:55 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-06-17 12:33:55 +0200 |
| commit | 9ac3d9b63ccddc14d3ffbc9d53a8c5864ad68a17 (patch) | |
| tree | 82c93bd5fee0d18c9fe49561c76a2fa79e970813 /src/libsyntax/print/pprust.rs | |
| parent | be203ac258365a2fb85a40314708d26112c40381 (diff) | |
| download | rust-9ac3d9b63ccddc14d3ffbc9d53a8c5864ad68a17.tar.gz rust-9ac3d9b63ccddc14d3ffbc9d53a8c5864ad68a17.zip | |
Fix panic when using debug
Diffstat (limited to 'src/libsyntax/print/pprust.rs')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 0c90e102f34..e2c1b3fc45b 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -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)); |
