about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-09-04 09:48:03 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-09-04 14:41:09 +1000
commita1cd79ff4e407ccaa1e3f7ac794812251600970c (patch)
tree187b81881f9e37bfadff65e5d5f5d3351955ae4f /src/libsyntax_pos
parent6025fc843a216a0bff9f25014dc61018266e0aa1 (diff)
downloadrust-a1cd79ff4e407ccaa1e3f7ac794812251600970c.tar.gz
rust-a1cd79ff4e407ccaa1e3f7ac794812251600970c.zip
Remove `Encodable`/`Decodable` impls for `LocalInternedString`.
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/symbol.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs
index aeea3c920af..32ca1fdff93 100644
--- a/src/libsyntax_pos/symbol.rs
+++ b/src/libsyntax_pos/symbol.rs
@@ -1231,18 +1231,6 @@ impl fmt::Display for LocalInternedString {
     }
 }
 
-impl Decodable for LocalInternedString {
-    fn decode<D: Decoder>(d: &mut D) -> Result<LocalInternedString, D::Error> {
-        Ok(LocalInternedString::intern(&d.read_str()?))
-    }
-}
-
-impl Encodable for LocalInternedString {
-    fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error> {
-        s.emit_str(self.string)
-    }
-}
-
 /// An alternative to `Symbol` that is focused on string contents. It has two
 /// main differences to `Symbol`.
 ///