diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-06-23 07:24:25 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-07-22 15:59:24 +1000 |
| commit | 8a5bcdde9d8668f92bd2f323898d5da1bdc5df5b (patch) | |
| tree | 5656ed7794f557ce02b603c2aebafeeef5e4c31a /compiler/rustc_macros/src | |
| parent | 9748d87dc70a9a6725c5dbd76ce29d04752b4f90 (diff) | |
Introduce `Symbol::with_interner`.
It lets you get the contents of multiple symbols with a single TLS lookup and interner lock, instead of one per symbol.
Diffstat (limited to 'compiler/rustc_macros/src')
| -rw-r--r-- | compiler/rustc_macros/src/symbols.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_macros/src/symbols.rs b/compiler/rustc_macros/src/symbols.rs index 78a4d47ca33..455324430ef 100644 --- a/compiler/rustc_macros/src/symbols.rs +++ b/compiler/rustc_macros/src/symbols.rs @@ -288,7 +288,7 @@ fn symbols_with_errors(input: TokenStream) -> (TokenStream, Vec<syn::Error>) { const SYMBOL_DIGITS_BASE: u32 = #symbol_digits_base; /// The number of predefined symbols; this is the first index for - /// extra pre-interned symbols in an Interner created via + /// extra pre-interned symbols in an interner created via /// [`Interner::with_extra_symbols`]. pub const PREDEFINED_SYMBOLS_COUNT: u32 = #predefined_symbols_count; |
