Created
May 2, 2018 03:19
-
-
Save alexcrichton/41a8e1db7d58ac845082e2dfd883c2c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs | |
index eeed291..54f0aee 100644 | |
--- a/src/libsyntax/ext/quote.rs | |
+++ b/src/libsyntax/ext/quote.rs | |
@@ -75,7 +75,7 @@ pub mod rt { | |
impl ToTokens for ast::Ident { | |
fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { | |
- vec![TokenTree::Token(self.span, Token::from_ast_ident(*self))] | |
+ vec![TokenTree::Token(DUMMY_SP, Token::from_ast_ident(*self))] | |
} | |
} | |
@@ -193,7 +193,7 @@ pub mod rt { | |
impl ToTokens for ast::Lifetime { | |
fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { | |
- vec![TokenTree::Token(self.ident.span, token::Lifetime(self.ident))] | |
+ vec![TokenTree::Token(DUMMY_SP, token::Lifetime(self.ident))] | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment