diff options
| author | Paul Stansifer <paul.stansifer@gmail.com> | 2012-11-12 23:06:55 -0500 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-11-29 12:09:10 -0800 |
| commit | ee076f63f910fe2b132904ad05d0cda178ff1ec6 (patch) | |
| tree | 5417b8bffa8cf084c9ece9ae0ad4a6f6e0817e4a /src/libsyntax/print | |
| parent | fca52554e7e3b3eff0aaf8686fe4616628577ade (diff) | |
| download | rust-ee076f63f910fe2b132904ad05d0cda178ff1ec6.tar.gz rust-ee076f63f910fe2b132904ad05d0cda178ff1ec6.zip | |
Allow for macros to occur in statement position.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index f525436cc3e..b55eec80a93 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -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); |
