1
Fork 0

Drop the query result memmap before serializing it back.

This commit is contained in:
Camille GILLOT 2021-03-17 22:49:16 +01:00
parent 6b47e1ece8
commit 98007e2ce6
4 changed files with 44 additions and 26 deletions

View file

@ -101,6 +101,8 @@ pub trait OnDiskCache<'tcx>: rustc_data_structures::sync::Sync {
fn register_reused_dep_node(&self, tcx: TyCtxt<'tcx>, dep_node: &DepNode);
fn store_foreign_def_id_hash(&self, def_id: DefId, hash: DefPathHash);
fn drop_serialized_data(&self, tcx: TyCtxt<'tcx>);
fn serialize(&self, tcx: TyCtxt<'tcx>, encoder: &mut FileEncoder) -> FileEncodeResult;
}