1
Fork 0

macro_rules: Add an expansion-local cache to span marker

This commit is contained in:
Vadim Petrochenkov 2024-01-07 17:26:29 +03:00
parent 75c68cfd2b
commit edec91d624
2 changed files with 14 additions and 5 deletions

View file

@ -658,7 +658,7 @@ impl SyntaxContext {
}
/// Extend a syntax context with a given expansion and transparency.
pub(crate) fn apply_mark(self, expn_id: ExpnId, transparency: Transparency) -> SyntaxContext {
pub fn apply_mark(self, expn_id: ExpnId, transparency: Transparency) -> SyntaxContext {
HygieneData::with(|data| data.apply_mark(self, expn_id, transparency))
}