Skip to content

Commit 178b280

Browse files
committed
syntax: impl ToTokens for P<ast::ImplItem>
1 parent f9121e8 commit 178b280

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libsyntax/ext/quote.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ pub mod rt {
121121
}
122122
}
123123

124+
impl ToTokens for P<ast::ImplItem> {
125+
fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> {
126+
vec![TokenTree::Token(self.span, token::Interpolated(token::NtImplItem(self.clone())))]
127+
}
128+
}
129+
124130
impl ToTokens for ast::TraitItem {
125131
fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> {
126132
vec![TokenTree::Token(self.span,

0 commit comments

Comments
 (0)