We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ad8981 commit ccba8cbCopy full SHA for ccba8cb
compiler/rustc_span/src/symbol.rs
@@ -1726,7 +1726,7 @@ impl Interner {
1726
}
1727
1728
#[inline]
1729
- pub(crate) fn intern(&self, string: &str) -> Symbol {
+ fn intern(&self, string: &str) -> Symbol {
1730
let mut inner = self.0.lock();
1731
if let Some(&name) = inner.names.get(string) {
1732
return name;
@@ -1748,7 +1748,7 @@ impl Interner {
1748
1749
// Get the symbol as a string. `Symbol::as_str()` should be used in
1750
// preference to this function.
1751
- pub(crate) fn get(&self, symbol: Symbol) -> &str {
+ fn get(&self, symbol: Symbol) -> &str {
1752
self.0.lock().strings[symbol.0.as_usize()]
1753
1754
0 commit comments