about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2014-07-17 08:54:43 -0400
committerBen Gamari <bgamari.foss@gmail.com>2014-07-17 08:54:43 -0400
commite4f8cec416d727a7ca2d732cbbae99448228f76d (patch)
tree91f00c24a9e5acd82eb719913bf6e479346d5206 /src/libsyntax/ext
parenta807aa1fca5f1dac03dd9440f735d0e223eef4af (diff)
downloadrust-e4f8cec416d727a7ca2d732cbbae99448228f76d.tar.gz
rust-e4f8cec416d727a7ca2d732cbbae99448228f76d.zip
syntax: Add ToTokens impl for Method
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/quote.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs
index dec87915b3d..a7ede6f742d 100644
--- a/src/libsyntax/ext/quote.rs
+++ b/src/libsyntax/ext/quote.rs
@@ -143,6 +143,7 @@ pub mod rt {
     impl_to_source!(ast::Arg, arg_to_string)
     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::Expr>, expr_to_string)
     impl_to_source!(Gc<ast::Pat>, pat_to_string)
     impl_to_source_slice!(ast::Ty, ", ")
@@ -238,6 +239,7 @@ pub mod rt {
     impl_to_tokens!(ast::Ident)
     impl_to_tokens!(Gc<ast::Item>)
     impl_to_tokens!(Gc<ast::Pat>)
+    impl_to_tokens!(Gc<ast::Method>)
     impl_to_tokens_lifetime!(&'a [Gc<ast::Item>])
     impl_to_tokens!(ast::Ty)
     impl_to_tokens_lifetime!(&'a [ast::Ty])