about summary refs log tree commit diff
path: root/src/libsyntax_pos/lib.rs
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_pos/lib.rs
parent5ae3830d589ec75494ff26bd9c92e9f77e49173f (diff)
downloadrust-8ab67c8f560a730b8978f4a42deb70d01ca1cdfc.tar.gz
rust-8ab67c8f560a730b8978f4a42deb70d01ca1cdfc.zip
Remove `with_legacy_ctxt`
Diffstat (limited to 'src/libsyntax_pos/lib.rs')
-rw-r--r--src/libsyntax_pos/lib.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libsyntax_pos/lib.rs b/src/libsyntax_pos/lib.rs
index 9a296f17aaf..ca177eb4a36 100644
--- a/src/libsyntax_pos/lib.rs
+++ b/src/libsyntax_pos/lib.rs
@@ -526,13 +526,6 @@ impl 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).