summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-06-10 08:35:03 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-06-10 08:35:03 +1000
commit7f51a1b97638780a3d22979d886384ad7903cc4e (patch)
treeb2260c5e219bed6457c4b351c0d57b0d3922185e /compiler/rustc_span/src
parent15f5622a53210099a19ab46ce2316494fb413d7c (diff)
downloadrust-7f51a1b97638780a3d22979d886384ad7903cc4e.tar.gz
rust-7f51a1b97638780a3d22979d886384ad7903cc4e.zip
Revert b983e42936feab29f6333e9835913afc6b4a394e.
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs
index 0b7020660e9..7f227217e3c 100644
--- a/compiler/rustc_span/src/lib.rs
+++ b/compiler/rustc_span/src/lib.rs
@@ -1911,13 +1911,13 @@ impl_pos! {
     pub struct CharPos(pub usize);
 }
 
-impl<S: Encoder> Encodable<S> for BytePos {
+impl<S: rustc_serialize::Encoder> Encodable<S> for BytePos {
     fn encode(&self, s: &mut S) {
         s.emit_u32(self.0);
     }
 }
 
-impl<D: Decoder> Decodable<D> for BytePos {
+impl<D: rustc_serialize::Decoder> Decodable<D> for BytePos {
     fn decode(d: &mut D) -> BytePos {
         BytePos(d.read_u32())
     }