diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-07-27 15:11:42 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-07-29 15:51:03 -0700 |
| commit | 4d472ff1be571cc20d89ddc97d22c9903b6c3aa8 (patch) | |
| tree | 4e090646ee8f18132a36d8bc8956d14a5fdb12c1 /src/libsyntax | |
| parent | 3b7c25ce5b0b2bada6a45036a6455ed916b0b8e6 (diff) | |
| download | rust-4d472ff1be571cc20d89ddc97d22c9903b6c3aa8.tar.gz rust-4d472ff1be571cc20d89ddc97d22c9903b6c3aa8.zip | |
syntax: allow quasiquoter to inline `Vec<Stmt>`s
Diffstat (limited to 'src/libsyntax')
| -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 a7ede6f742d..5e15d6179bb 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -144,6 +144,7 @@ pub mod rt { impl_to_source!(Generics, generics_to_string) impl_to_source!(Gc<ast::Item>, item_to_string) impl_to_source!(Gc<ast::Method>, method_to_string) + 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_slice!(ast::Ty, ", ") @@ -244,6 +245,7 @@ pub mod rt { impl_to_tokens!(ast::Ty) impl_to_tokens_lifetime!(&'a [ast::Ty]) impl_to_tokens!(Generics) + impl_to_tokens!(Gc<ast::Stmt>) impl_to_tokens!(Gc<ast::Expr>) impl_to_tokens!(ast::Block) impl_to_tokens!(ast::Arg) |
