about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-05-09 12:14:30 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-05-10 15:59:13 +1000
commitcb7eacb1d2f856f52f2daf3b58325e667f654eca (patch)
tree10b618184c563a81fcd8e733179791fef3328d28 /src/libsyntax_pos
parent0e27c36145594dcf3f00707543f11f591a63ec95 (diff)
downloadrust-cb7eacb1d2f856f52f2daf3b58325e667f654eca.tar.gz
rust-cb7eacb1d2f856f52f2daf3b58325e667f654eca.zip
Remove the `From<InternedString> for String` impl.
It's not used.
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/symbol.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs
index ee4a581123f..231cfb793f8 100644
--- a/src/libsyntax_pos/symbol.rs
+++ b/src/libsyntax_pos/symbol.rs
@@ -840,12 +840,6 @@ impl<'a> PartialEq<InternedString> for &'a String {
     }
 }
 
-impl std::convert::From<InternedString> for String {
-    fn from(val: InternedString) -> String {
-        val.as_symbol().to_string()
-    }
-}
-
 impl fmt::Debug for InternedString {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         self.with(|str| fmt::Debug::fmt(&str, f))