diff options
| author | Richo Healey <richo@psych0tik.net> | 2016-03-15 19:50:11 +0100 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2016-03-15 19:50:11 +0100 |
| commit | 178b28099fa542430a8e9491e23053a162aedcb9 (patch) | |
| tree | 4ffb4911603d495643c645929b48e3fbd80378cb /src/libsyntax | |
| parent | f9121e87a662568d42cc481f87d81ed4df38cc0d (diff) | |
| download | rust-178b28099fa542430a8e9491e23053a162aedcb9.tar.gz rust-178b28099fa542430a8e9491e23053a162aedcb9.zip | |
syntax: impl ToTokens for P<ast::ImplItem>
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 38da478b5ed..77aeaf8459a 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -121,6 +121,12 @@ pub mod rt { } } + impl ToTokens for P<ast::ImplItem> { + fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { + vec![TokenTree::Token(self.span, token::Interpolated(token::NtImplItem(self.clone())))] + } + } + impl ToTokens for ast::TraitItem { fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { vec