Fix pretty printer macro_rules with semicolon.
This commit is contained in:
parent
921ec4b3fc
commit
cadffa74df
2 changed files with 22 additions and 0 deletions
|
@ -1311,6 +1311,9 @@ impl<'a> State<'a> {
|
|||
true,
|
||||
item.span,
|
||||
);
|
||||
if macro_def.body.need_semicolon() {
|
||||
self.word(";");
|
||||
}
|
||||
}
|
||||
}
|
||||
self.ann.post(self, AnnNode::Item(item))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue