Fix bug in the pretty printer.

This commit is contained in:
Jeffrey Seyfried 2016-07-05 11:21:25 +00:00
parent 337236870d
commit 52d485fe0d

View File

@ -1638,9 +1638,8 @@ impl<'a> State<'a> {
_ => token::Paren
};
try!(self.print_mac(&mac, delim));
match style {
ast::MacStmtStyle::Braces => {}
_ => try!(word(&mut self.s, ";")),
if style == ast::MacStmtStyle::Semicolon {
try!(word(&mut self.s, ";"));
}
}
}