From 8ab67c8f560a730b8978f4a42deb70d01ca1cdfc Mon Sep 17 00:00:00 2001 From: Matthew Jasper Date: Sat, 14 Sep 2019 21:17:11 +0100 Subject: Remove `with_legacy_ctxt` --- src/libsyntax/ext/base.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index d3f6717ee87..384c0555c85 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -977,13 +977,6 @@ impl<'a> ExtCtxt<'a> { span.with_call_site_ctxt(self.current_expansion.id) } - /// Span with a context reproducing `macro_rules` hygiene (hygienic locals, unhygienic items). - /// FIXME: This should be eventually replaced either with `with_def_site_ctxt` (preferably), - /// or with `with_call_site_ctxt` (where necessary). - pub fn with_legacy_ctxt(&self, span: Span) -> Span { - span.with_legacy_ctxt(self.current_expansion.id) - } - /// Returns span for the macro which originally caused the current expansion to happen. /// /// Stops backtracing at include! boundary. -- cgit 1.4.1-3-g733a5