about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-09-18 18:01:36 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-09-22 13:37:09 +0200
commit9886c233d84c231030af76419d002996df981ebc (patch)
treea8bcec45a11b49d7bbd6f6f54485a336ccfb06fb /compiler/rustc_span/src
parentce45663e14dac3f0f58be698cc530bc2e6e21682 (diff)
downloadrust-9886c233d84c231030af76419d002996df981ebc.tar.gz
rust-9886c233d84c231030af76419d002996df981ebc.zip
Remove Symbol::len
It is used exactly once and can be replaced with the equally fast
.as_str().len()
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 7c2a09e0a32..eaf92487bff 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -1642,10 +1642,6 @@ impl Symbol {
         self.0.as_u32()
     }
 
-    pub fn len(self) -> usize {
-        with_session_globals(|session_globals| session_globals.symbol_interner.get(self).len())
-    }
-
     pub fn is_empty(self) -> bool {
         self == kw::Empty
     }