diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-09-15 18:44:31 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-09-15 18:46:53 +0200 |
| commit | ccba8cb4bb6ba5c2c136f14952ff6119020cc7f5 (patch) | |
| tree | 1307dbb1869a13e68670a268e2c7210809e697b2 /compiler/rustc_span/src | |
| parent | 0ad89819457e7067884597e9a816dab483377ed5 (diff) | |
| download | rust-ccba8cb4bb6ba5c2c136f14952ff6119020cc7f5.tar.gz rust-ccba8cb4bb6ba5c2c136f14952ff6119020cc7f5.zip | |
Make two functions private
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index 95ab19b55d2..4cdf2167b90 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -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; @@ -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()] } } |
