Skip to content

Commit ccba8cb

Browse files
committed
Make two functions private
1 parent 0ad8981 commit ccba8cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_span/src/symbol.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ impl Interner {
17261726
}
17271727

17281728
#[inline]
1729-
pub(crate) fn intern(&self, string: &str) -> Symbol {
1729+
fn intern(&self, string: &str) -> Symbol {
17301730
let mut inner = self.0.lock();
17311731
if let Some(&name) = inner.names.get(string) {
17321732
return name;
@@ -1748,7 +1748,7 @@ impl Interner {
17481748

17491749
// Get the symbol as a string. `Symbol::as_str()` should be used in
17501750
// preference to this function.
1751-
pub(crate) fn get(&self, symbol: Symbol) -> &str {
1751+
fn get(&self, symbol: Symbol) -> &str {
17521752
self.0.lock().strings[symbol.0.as_usize()]
17531753
}
17541754
}

0 commit comments

Comments
 (0)