Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created May 2, 2018 03:19
Show Gist options
  • Save alexcrichton/41a8e1db7d58ac845082e2dfd883c2c1 to your computer and use it in GitHub Desktop.
Save alexcrichton/41a8e1db7d58ac845082e2dfd883c2c1 to your computer and use it in GitHub Desktop.
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