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 02004ef commit a51c69eCopy full SHA for a51c69e
src/libproc_macro/lib.rs
@@ -191,7 +191,7 @@ impl Default for Span {
191
/// This is needed to implement a custom quoter.
192
#[unstable(feature = "proc_macro", issue = "38356")]
193
pub fn quote_span(span: Span) -> TokenStream {
194
- TokenStream(quote::Quote::quote(&span.0))
+ quote::Quote::quote(span)
195
}
196
197
macro_rules! diagnostic_method {
0 commit comments