incr.comp.: Delete orphaned work-products.
This commit is contained in:
parent
45b273af4a
commit
fe025d4345
6 changed files with 51 additions and 12 deletions
|
|
@ -126,6 +126,12 @@ impl DepGraph {
|
|||
pub fn work_products(&self) -> Ref<FxHashMap<Arc<WorkProductId>, WorkProduct>> {
|
||||
self.data.work_products.borrow()
|
||||
}
|
||||
|
||||
/// Access the map of work-products created during the cached run. Only
|
||||
/// used during saving of the dep-graph.
|
||||
pub fn previous_work_products(&self) -> Ref<FxHashMap<Arc<WorkProductId>, WorkProduct>> {
|
||||
self.data.previous_work_products.borrow()
|
||||
}
|
||||
}
|
||||
|
||||
/// A "work product" is an intermediate result that we save into the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue