Skip to content

Commit 52d485f

Browse files
committed
Fix bug in the pretty printer.
1 parent 3372368 commit 52d485f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libsyntax/print/pprust.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,9 +1638,8 @@ impl<'a> State<'a> {
16381638
_ => token::Paren
16391639
};
16401640
try!(self.print_mac(&mac, delim));
1641-
match style {
1642-
ast::MacStmtStyle::Braces => {}
1643-
_ => try!(word(&mut self.s, ";")),
1641+
if style == ast::MacStmtStyle::Semicolon {
1642+
try!(word(&mut self.s, ";"));
16441643
}
16451644
}
16461645
}

0 commit comments

Comments
 (0)