Skip to content

Commit cb7eacb

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

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
@@ -840,12 +840,6 @@ impl<'a> PartialEq<InternedString> for &'a String {
840840
}
841841
}
842842

843-
impl std::convert::From<InternedString> for String {
844-
fn from(val: InternedString) -> String {
845-
val.as_symbol().to_string()
846-
}
847-
}
848-
849843
impl fmt::Debug for InternedString {
850844
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
851845
self.with(|str| fmt::Debug::fmt(&str, f))

0 commit comments

Comments
 (0)