macro_rules: Add an expansion-local cache to span marker
This commit is contained in:
parent
75c68cfd2b
commit
edec91d624
2 changed files with 14 additions and 5 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue