about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2019-09-14 21:17:11 +0100
committerMatthew Jasper <mjjasper1@gmail.com>2019-09-15 09:15:38 +0100
commit8ab67c8f560a730b8978f4a42deb70d01ca1cdfc (patch)
tree5b6728330dafce3a7036175624022ec9168e1e05 /src/libsyntax
parent5ae3830d589ec75494ff26bd9c92e9f77e49173f (diff)
downloadrust-8ab67c8f560a730b8978f4a42deb70d01ca1cdfc.tar.gz
rust-8ab67c8f560a730b8978f4a42deb70d01ca1cdfc.zip
Remove `with_legacy_ctxt`
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/base.rs7
1 files changed, 0 insertions, 7 deletions
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.