Skip to content

Commit 4d472ff

Browse files
committed
syntax: allow quasiquoter to inline Vec<Stmt>s
1 parent 3b7c25c commit 4d472ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsyntax/ext/quote.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ pub mod rt {
144144
impl_to_source!(Generics, generics_to_string)
145145
impl_to_source!(Gc<ast::Item>, item_to_string)
146146
impl_to_source!(Gc<ast::Method>, method_to_string)
147+
impl_to_source!(Gc<ast::Stmt>, stmt_to_string)
147148
impl_to_source!(Gc<ast::Expr>, expr_to_string)
148149
impl_to_source!(Gc<ast::Pat>, pat_to_string)
149150
impl_to_source_slice!(ast::Ty, ", ")
@@ -244,6 +245,7 @@ pub mod rt {
244245
impl_to_tokens!(ast::Ty)
245246
impl_to_tokens_lifetime!(&'a [ast::Ty])
246247
impl_to_tokens!(Generics)
248+
impl_to_tokens!(Gc<ast::Stmt>)
247249
impl_to_tokens!(Gc<ast::Expr>)
248250
impl_to_tokens!(ast::Block)
249251
impl_to_tokens!(ast::Arg)

0 commit comments

Comments
 (0)