diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-07-27 18:05:07 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-07-29 15:51:03 -0700 |
| commit | 1200ad0f06fc1ecc9a5ccf320e704c95786dbfe3 (patch) | |
| tree | 7e1a908806f9c817c915265e882f13cf736a7c52 /src/libsyntax/ext | |
| parent | a46463d17920b99411337f20fc0e7edc72230c0b (diff) | |
Fix a bug pretty printing `match { 5i } { _ => { } }`
This also always puts a trailing comma on the last non-block expr.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 5e15d6179bb..8f236cebcf4 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -147,6 +147,7 @@ pub mod rt { impl_to_source!(Gc<ast::Stmt>, stmt_to_string) impl_to_source!(Gc<ast::Expr>, expr_to_string) impl_to_source!(Gc<ast::Pat>, pat_to_string) + impl_to_source!(ast::Arm, arm_to_string) impl_to_source_slice!(ast::Ty, ", ") impl_to_source_slice!(Gc<ast::Item>, "\n\n") @@ -240,6 +241,7 @@ pub mod rt { impl_to_tokens!(ast::Ident) impl_to_tokens!(Gc<ast::Item>) impl_to_tokens!(Gc<ast::Pat>) + impl_to_tokens!(ast::Arm) impl_to_tokens!(Gc<ast::Method>) impl_to_tokens_lifetime!(&'a [Gc<ast::Item>]) impl_to_tokens!(ast::Ty) |
