diff options
| author | Seiichi Uchida <seuchida@gmail.com> | 2018-02-04 21:19:14 +0900 |
|---|---|---|
| committer | Seiichi Uchida <seuchida@gmail.com> | 2018-02-18 00:10:40 +0900 |
| commit | b5099a708d67ed165c5ebcfc2c55b1cdf2ad86bc (patch) | |
| tree | 1ac1b574e5327975ef033bddea12f6df54043f7e /src/librustc_allocator | |
| parent | d6bdf296a42caec8711adc075782e0b8c920aa1f (diff) | |
| download | rust-b5099a708d67ed165c5ebcfc2c55b1cdf2ad86bc.tar.gz rust-b5099a708d67ed165c5ebcfc2c55b1cdf2ad86bc.zip | |
Replace dummy spans with empty spans
Diffstat (limited to 'src/librustc_allocator')
| -rw-r--r-- | src/librustc_allocator/expand.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_allocator/expand.rs b/src/librustc_allocator/expand.rs index 951c2280f76..26a7f50b997 100644 --- a/src/librustc_allocator/expand.rs +++ b/src/librustc_allocator/expand.rs @@ -15,7 +15,7 @@ use syntax::ast::{Crate, Attribute, LitKind, StrStyle, ExprKind}; use syntax::ast::{Unsafety, Constness, Generics, Mutability, Ty, Mac, Arg}; use syntax::ast::{self, Ident, Item, ItemKind, TyKind, VisibilityKind, Expr}; use syntax::attr; -use syntax::codemap::dummy_spanned; +use syntax::codemap::{dummy_spanned, respan}; use syntax::codemap::{ExpnInfo, NameAndSpan, MacroAttribute}; use syntax::ext::base::ExtCtxt; use syntax::ext::base::Resolver; @@ -97,7 +97,7 @@ impl<'a> Folder for ExpandAllocatorDirectives<'a> { ]); let mut items = vec![ f.cx.item_extern_crate(f.span, f.alloc), - f.cx.item_use_simple(f.span, dummy_spanned(VisibilityKind::Inherited), super_path), + f.cx.item_use_simple(f.span, respan(f.span.empty(), VisibilityKind::Inherited), super_path), ]; for method in ALLOCATOR_METHODS { items.push(f.allocator_fn(method)); |
