From 5af4df4a264ea3409189a3b64c12fcf6b6eee2c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Ochagav=C3=ADa?= Date: Fri, 23 Jan 2015 10:15:56 +0100 Subject: [PATCH] Fix pretty printer --- src/libsyntax/print/pprust.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 5367ccc1357..f5ecadffede 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -781,6 +781,7 @@ impl<'a> State<'a> { } fn print_typedef(&mut self, typedef: &ast::Typedef) -> IoResult<()> { + try!(self.print_outer_attributes(&typedef.attrs[])); try!(self.word_space("type")); try!(self.print_ident(typedef.ident)); try!(space(&mut self.s));