1
Fork 0

Minimize pub usage in hygiene.rs.

And remove dead functions revealed by this.
This commit is contained in:
Nicholas Nethercote 2023-11-01 14:00:42 +11:00
parent 16e9713e60
commit 222c22356b
2 changed files with 16 additions and 35 deletions

View file

@ -954,7 +954,7 @@ impl Span {
/// 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).
pub fn with_ctxt_from_mark(self, expn_id: ExpnId, transparency: Transparency) -> Span {
fn with_ctxt_from_mark(self, expn_id: ExpnId, transparency: Transparency) -> Span {
self.with_ctxt(SyntaxContext::root().apply_mark(expn_id, transparency))
}