We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98007e2 commit bcefd48Copy full SHA for bcefd48
compiler/rustc_query_impl/src/on_disk_cache.rs
@@ -246,6 +246,11 @@ impl<'sess> rustc_middle::ty::OnDiskCache<'sess> for OnDiskCache<'sess> {
246
}
247
248
249
+ /// Execute all cache promotions and release the serialized backing Mmap.
250
+ ///
251
+ /// Cache promotions require invoking queries, which needs to read the serialized data.
252
+ /// In order to serialize the new on-disk cache, the former on-disk cache file needs to be
253
+ /// deleted, hence we won't be able to refer to its memmapped data.
254
fn drop_serialized_data(&self, tcx: TyCtxt<'tcx>) {
255
// Register any dep nodes that we reused from the previous session,
256
// but didn't `DepNode::construct` in this session. This ensures
0 commit comments