From 761674ed7098c14bfed6f68883d9a9f63e4118e4 Mon Sep 17 00:00:00 2001 From: Piotr Czarnecki Date: Tue, 8 Mar 2016 13:50:58 +0100 Subject: [PATCH] Use correct spans --- quasi_codegen/src/lib.rs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/quasi_codegen/src/lib.rs b/quasi_codegen/src/lib.rs index fefb2ea9..02bcdee8 100644 --- a/quasi_codegen/src/lib.rs +++ b/quasi_codegen/src/lib.rs @@ -27,7 +27,7 @@ extern crate syntax; extern crate rustc_plugin; use syntax::ast; -use syntax::codemap::Span; +use syntax::codemap::{Span, respan}; use syntax::ext::base::ExtCtxt; use syntax::ext::base; use syntax::parse::token::*; @@ -456,7 +456,7 @@ fn expr_mk_token(builder: &aster::AstBuilder, tok: &token::Token) -> P, - idents: Vec, + idents: Vec, } fn statements_mk_tt(tt: &ast::TokenTree, matcher: bool) -> Result { @@ -490,7 +490,7 @@ fn statements_mk_tt(tt: &ast::TokenTree, matcher: bool) -> Result { @@ -595,26 +595,27 @@ fn statements_mk_tt(tt: &ast::TokenTree, matcher: bool) -> Result