We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eddc3cc commit 8659889Copy full SHA for 8659889
src/libsyntax/ext/quote.rs
@@ -147,6 +147,12 @@ pub mod rt {
147
impl_to_source_slice!(ast::Ty, ", ")
148
impl_to_source_slice!(Gc<ast::Item>, "\n\n")
149
150
+ impl ToSource for ast::Attribute_ {
151
+ fn to_source(&self) -> String {
152
+ pprust::attribute_to_string(&dummy_spanned(*self))
153
+ }
154
155
+
156
impl<'a> ToSource for &'a str {
157
fn to_source(&self) -> String {
158
let lit = dummy_spanned(ast::LitStr(
@@ -238,6 +244,7 @@ pub mod rt {
238
244
impl_to_tokens!(Gc<ast::Expr>)
239
245
impl_to_tokens!(ast::Block)
240
246
impl_to_tokens!(ast::Arg)
247
+ impl_to_tokens!(ast::Attribute_)
241
248
impl_to_tokens_lifetime!(&'a str)
242
249
impl_to_tokens!(())
243
250
impl_to_tokens!(char)
0 commit comments