We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Symbol
1 parent b749511 commit 3e5e8d3Copy full SHA for 3e5e8d3
src/libsyntax_pos/symbol.rs
@@ -376,10 +376,6 @@ impl Symbol {
376
with_interner(|interner| interner.intern(string))
377
}
378
379
- pub fn interned(self) -> Self {
380
- with_interner(|interner| interner.interned(self))
381
- }
382
-
383
/// Gensyms a new `usize`, using the current interner.
384
pub fn gensym(string: &str) -> Self {
385
with_interner(|interner| interner.gensym(string))
@@ -497,7 +493,7 @@ impl Interner {
497
493
name
498
494
499
495
500
- pub fn interned(&self, symbol: Symbol) -> Symbol {
496
+ fn interned(&self, symbol: Symbol) -> Symbol {
501
if (symbol.0.as_usize()) < self.strings.len() {
502
symbol
503
} else {
0 commit comments