diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-05-09 12:14:30 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-05-10 15:59:13 +1000 |
| commit | cb7eacb1d2f856f52f2daf3b58325e667f654eca (patch) | |
| tree | 10b618184c563a81fcd8e733179791fef3328d28 /src/libsyntax_pos | |
| parent | 0e27c36145594dcf3f00707543f11f591a63ec95 (diff) | |
| download | rust-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.rs | 6 |
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)) |
