1
Fork 0

Move finish out of the Encoder trait.

This simplifies things, but requires making `CacheEncoder` non-generic.
This commit is contained in:
Nicholas Nethercote 2022-06-08 07:26:35 +10:00
parent 1acbe7573d
commit dc08bc51f2
13 changed files with 51 additions and 111 deletions

View file

@ -20,7 +20,7 @@ use rustc_data_structures::profiling::SelfProfilerRef;
use rustc_data_structures::sync::Lock;
use rustc_index::vec::{Idx, IndexVec};
use rustc_serialize::opaque::{self, FileEncodeResult, FileEncoder, IntEncodedWithFixedSize};
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
use rustc_serialize::{Decodable, Decoder, Encodable};
use smallvec::SmallVec;
use std::convert::TryInto;