Skip to content

Commit

Permalink
Make two functions private
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Sep 15, 2021
1 parent 0ad8981 commit ccba8cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_span/src/symbol.rs
Expand Up @@ -1726,7 +1726,7 @@ impl Interner {
}

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

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

0 comments on commit ccba8cb

Please sign in to comment.