Skip to content

Commit b749511

Browse files
committed
Remove the From<InternedString> for String impl.
It's not used.
1 parent bd64b19 commit b749511

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/libsyntax_pos/symbol.rs

-6
Original file line numberDiff line numberDiff line change
@@ -832,12 +832,6 @@ impl<'a> PartialEq<InternedString> for &'a String {
832832
}
833833
}
834834

835-
impl std::convert::From<InternedString> for String {
836-
fn from(val: InternedString) -> String {
837-
val.as_symbol().to_string()
838-
}
839-
}
840-
841835
impl fmt::Debug for InternedString {
842836
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
843837
self.with(|str| fmt::Debug::fmt(&str, f))

0 commit comments

Comments
 (0)