Skip to content

Commit a51c69e

Browse files
committed
proc_macro: process proc_macro tokens instead of libsyntax ones in the quasi-quoter.
1 parent 02004ef commit a51c69e

File tree

2 files changed

+167
-153
lines changed

2 files changed

+167
-153
lines changed

src/libproc_macro/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl Default for Span {
191191
/// This is needed to implement a custom quoter.
192192
#[unstable(feature = "proc_macro", issue = "38356")]
193193
pub fn quote_span(span: Span) -> TokenStream {
194-
TokenStream(quote::Quote::quote(&span.0))
194+
quote::Quote::quote(span)
195195
}
196196

197197
macro_rules! diagnostic_method {

0 commit comments

Comments
 (0)