diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-01-07 17:26:29 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-01-08 03:06:37 +0300 |
| commit | edec91d624f41c25b3c75bb3df818dc081193dce (patch) | |
| tree | b0305372aa1f7448341af6fb758cf45622e56593 /compiler/rustc_span/src | |
| parent | 75c68cfd2b9870f2953b62d250bd7d0564a7b56d (diff) | |
| download | rust-edec91d624f41c25b3c75bb3df818dc081193dce.tar.gz rust-edec91d624f41c25b3c75bb3df818dc081193dce.zip | |
macro_rules: Add an expansion-local cache to span marker
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/hygiene.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs index 08fb1d1345d..6a15961ee20 100644 --- a/compiler/rustc_span/src/hygiene.rs +++ b/compiler/rustc_span/src/hygiene.rs @@ -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)) } |
