diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-06-23 21:41:39 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-06-23 21:53:24 +0300 |
| commit | 20ce91076af125eda82bb36e446e67b1c7af4218 (patch) | |
| tree | db4017fc25d2a0d413f70ed1186b6d7dfd45be4a /src/librustc_allocator | |
| parent | 117cb040f14719489a38ace1c256ec282f42c367 (diff) | |
hygiene: Merge `NameAndSpan` into `ExpnInfo`
Diffstat (limited to 'src/librustc_allocator')
| -rw-r--r-- | src/librustc_allocator/expand.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/librustc_allocator/expand.rs b/src/librustc_allocator/expand.rs index 78406e88c75..a9530964bff 100644 --- a/src/librustc_allocator/expand.rs +++ b/src/librustc_allocator/expand.rs @@ -15,7 +15,7 @@ use syntax::ast::{Arg, FnHeader, Generics, Mac, Mutability, Ty, Unsafety}; use syntax::ast::{self, Expr, Ident, Item, ItemKind, TyKind, VisibilityKind}; use syntax::attr; use syntax::codemap::respan; -use syntax::codemap::{ExpnInfo, MacroAttribute, NameAndSpan}; +use syntax::codemap::{ExpnInfo, MacroAttribute}; use syntax::ext::base::ExtCtxt; use syntax::ext::base::Resolver; use syntax::ext::build::AstBuilder; @@ -80,13 +80,11 @@ impl<'a> Folder for ExpandAllocatorDirectives<'a> { let mark = Mark::fresh(Mark::root()); mark.set_expn_info(ExpnInfo { call_site: DUMMY_SP, - callee: NameAndSpan { - format: MacroAttribute(Symbol::intern(name)), - span: None, - allow_internal_unstable: true, - allow_internal_unsafe: false, - edition: hygiene::default_edition(), - }, + def_site: None, + format: MacroAttribute(Symbol::intern(name)), + allow_internal_unstable: true, + allow_internal_unsafe: false, + edition: hygiene::default_edition(), }); let span = item.span.with_ctxt(SyntaxContext::empty().apply_mark(mark)); let ecfg = ExpansionConfig::default(name.to_string()); |
