]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax_pos/lib.rs
Remove `with_legacy_ctxt`
[rust.git] / src / libsyntax_pos / lib.rs
index 9a296f17aaf4aa26cc274ba2b0644b4e8e1887f6..ca177eb4a361654c064e6d137c1d8f939ac3bb3c 100644 (file)
@@ -526,13 +526,6 @@ pub fn with_call_site_ctxt(&self, expn_id: ExpnId) -> Span {
         self.with_ctxt_from_mark(expn_id, Transparency::Transparent)
     }
 
-    /// 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, expn_id: ExpnId) -> Span {
-        self.with_ctxt_from_mark(expn_id, Transparency::SemiTransparent)
-    }
-
     /// Produces a span with the same location as `self` and context produced by a macro with the
     /// given ID and transparency, assuming that macro was defined directly and not produced by
     /// some other macro (which is the case for built-in and procedural macros).