]> git.lizzy.rs Git - rust.git/commitdiff
Remove the `From<InternedString> for String` impl.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 9 May 2019 02:14:30 +0000 (12:14 +1000)
committerNicholas Nethercote <nnethercote@mozilla.com>
Fri, 10 May 2019 05:59:13 +0000 (15:59 +1000)
It's not used.

src/libsyntax_pos/symbol.rs

index ee4a581123f889e8cf0e656238528988f119718e..231cfb793f84412fa8c58e285758beae7dba8db8 100644 (file)
@@ -840,12 +840,6 @@ fn eq(&self, other: &InternedString) -> bool {
     }
 }
 
-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))