Allow for macros to occur in statement position.
This commit is contained in:
committed by
Graydon Hoare
parent
fca52554e7
commit
ee076f63f9
@@ -882,6 +882,10 @@ fn print_stmt(s: ps, st: ast::stmt) {
|
||||
print_expr(s, expr);
|
||||
word(s.s, ~";");
|
||||
}
|
||||
ast::stmt_mac(mac) => {
|
||||
space_if_not_bol(s);
|
||||
print_mac(s, mac);
|
||||
}
|
||||
}
|
||||
if parse::classify::stmt_ends_with_semi(st) { word(s.s, ~";"); }
|
||||
maybe_print_trailing_comment(s, st.span, None);
|
||||
|
||||
Reference in New Issue
Block a user