]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ext/base.rs
Remove `with_legacy_ctxt`
[rust.git] / src / libsyntax / ext / base.rs
index d3f6717ee875d1d67193103aac340b5ba819d8dd..384c0555c85bd683ed43353f2dfdcacc1003f857 100644 (file)
@@ -977,13 +977,6 @@ pub fn with_call_site_ctxt(&self, span: Span) -> Span {
         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.