]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_allocator/expand.rs
libsyntax: Remove `Mark` into `ExpnId`
[rust.git] / src / librustc_allocator / expand.rs
index 9803ee99f1a47714f4412fb70ded9142bd574b12..87373364c4d9e3d26753f667c03ac52d86774f84 100644 (file)
@@ -14,7 +14,7 @@
         base::{ExtCtxt, MacroKind, Resolver},
         build::AstBuilder,
         expand::ExpansionConfig,
-        hygiene::Mark,
+        hygiene::ExpnId,
     },
     mut_visit::{self, MutVisitor},
     parse::ParseSess,
@@ -85,7 +85,7 @@ impl MutVisitor for ExpandAllocatorDirectives<'_> {
         self.found = true;
 
         // Create a new expansion for the generated allocator code.
-        let span = item.span.fresh_expansion(Mark::root(), ExpnInfo::allow_unstable(
+        let span = item.span.fresh_expansion(ExpnId::root(), ExpnInfo::allow_unstable(
             ExpnKind::Macro(MacroKind::Attr, sym::global_allocator), item.span, self.sess.edition,
             [sym::rustc_attrs][..].into(),
         ));