about summary refs log tree commit diff
path: root/src/librustc
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-09-03 16:06:42 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-09-04 14:23:30 +1000
commit0ad111f8bb9bf534c9d2a9ba46d6850907c757e3 (patch)
tree97876dc70c629cde39d036798ca5203908190d7c /src/librustc
parenta8975a0752d52741615728394a0a8a867187ae01 (diff)
downloadrust-0ad111f8bb9bf534c9d2a9ba46d6850907c757e3.tar.gz
rust-0ad111f8bb9bf534c9d2a9ba46d6850907c757e3.zip
Remove `LocalInternedString` uses from `librustc/ty/`.
This is not a compelling change in isolation, but it is a necessary
step.
Diffstat (limited to 'src/librustc')
-rw-r--r--src/librustc/ty/mod.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs
index 56505c04f0f..2da50f37409 100644
--- a/src/librustc/ty/mod.rs
+++ b/src/librustc/ty/mod.rs
@@ -46,7 +46,7 @@ use std::ops::Range;
 use syntax::ast::{self, Name, Ident, NodeId};
 use syntax::attr;
 use syntax::ext::hygiene::ExpnId;
-use syntax::symbol::{kw, sym, Symbol, LocalInternedString, InternedString};
+use syntax::symbol::{kw, sym, Symbol, InternedString};
 use syntax_pos::Span;
 
 use smallvec;
@@ -3386,10 +3386,6 @@ impl SymbolName {
             name: InternedString::intern(name)
         }
     }
-
-    pub fn as_str(&self) -> LocalInternedString {
-        self.name.as_str()
-    }
 }
 
 impl fmt::Display for SymbolName {