Remove with_legacy_ctxt

This commit is contained in:
Matthew Jasper
2019-09-14 21:17:11 +01:00
parent 5ae3830d58
commit 8ab67c8f56
13 changed files with 44 additions and 34 deletions

View 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,