diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-07-05 11:21:25 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-07-13 04:49:32 +0000 |
| commit | 52d485fe0d11d18c51c8868872d472f07b8e06d2 (patch) | |
| tree | c1573be2893a8d59c47a01b33868cd55d64a3c74 /src/libsyntax | |
| parent | 337236870dd33497e921aa6a0227533f47fac852 (diff) | |
| download | rust-52d485fe0d11d18c51c8868872d472f07b8e06d2.tar.gz rust-52d485fe0d11d18c51c8868872d472f07b8e06d2.zip | |
Fix bug in the pretty printer.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index ce30c3de759..8866ffc2575 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -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, ";")); } } } |
