about summary refs log tree commit diff
path: root/src/librustc_allocator/expand.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_allocator/expand.rs')
-rw-r--r--src/librustc_allocator/expand.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_allocator/expand.rs b/src/librustc_allocator/expand.rs
index d402b0ddf6e..18bbb257128 100644
--- a/src/librustc_allocator/expand.rs
+++ b/src/librustc_allocator/expand.rs
@@ -8,7 +8,7 @@ use syntax::{
     },
     attr,
     source_map::{
-        respan, ExpnInfo, MacroAttribute,
+        respan, ExpnInfo, ExpnKind,
     },
     ext::{
         base::{ExtCtxt, Resolver},
@@ -87,7 +87,8 @@ impl MutVisitor for ExpandAllocatorDirectives<'_> {
         // Create a fresh Mark for the new macro expansion we are about to do
         let mark = Mark::fresh(Mark::root());
         mark.set_expn_info(ExpnInfo::with_unstable(
-            MacroAttribute(sym::global_allocator), item.span, self.sess.edition, &[sym::rustc_attrs]
+            ExpnKind::MacroAttribute(sym::global_allocator), item.span, self.sess.edition,
+            &[sym::rustc_attrs],
         ));
 
         // Tie the span to the macro expansion info we just created