Skip to content

Commit e4f8cec

Browse files
committed
syntax: Add ToTokens impl for Method
1 parent a807aa1 commit e4f8cec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsyntax/ext/quote.rs

+2
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ pub mod rt {
143143
impl_to_source!(ast::Arg, arg_to_string)
144144
impl_to_source!(Generics, generics_to_string)
145145
impl_to_source!(Gc<ast::Item>, item_to_string)
146+
impl_to_source!(Gc<ast::Method>, method_to_string)
146147
impl_to_source!(Gc<ast::Expr>, expr_to_string)
147148
impl_to_source!(Gc<ast::Pat>, pat_to_string)
148149
impl_to_source_slice!(ast::Ty, ", ")
@@ -238,6 +239,7 @@ pub mod rt {
238239
impl_to_tokens!(ast::Ident)
239240
impl_to_tokens!(Gc<ast::Item>)
240241
impl_to_tokens!(Gc<ast::Pat>)
242+
impl_to_tokens!(Gc<ast::Method>)
241243
impl_to_tokens_lifetime!(&'a [Gc<ast::Item>])
242244
impl_to_tokens!(ast::Ty)
243245
impl_to_tokens_lifetime!(&'a [ast::Ty])

0 commit comments

Comments
 (0)