]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax_ext/global_allocator.rs
Remove `with_legacy_ctxt`
[rust.git] / src / libsyntax_ext / global_allocator.rs
index c57e5eec0b6b8caf98985e9aea28124ca54fdde9..19a87e6dc6d745e4d471583d2258c107796c1ad5 100644 (file)
@@ -28,7 +28,7 @@ pub fn expand(
     };
 
     // Generate a bunch of new items using the AllocFnFactory
-    let span = ecx.with_legacy_ctxt(item.span);
+    let span = ecx.with_def_site_ctxt(item.span);
     let f = AllocFnFactory {
         span,
         kind: AllocatorKind::Global,