Make index_hir incremental.

This commit is contained in:
Camille GILLOT
2021-02-28 20:23:10 +01:00
parent ed3c8e86cb
commit c09eaea484
6 changed files with 113 additions and 140 deletions

View File

@@ -93,10 +93,7 @@ macro_rules! arena_types {
[] predicates: rustc_middle::ty::PredicateInner<$tcx>,
// HIR query types
[few] indexed_hir: rustc_middle::hir::IndexedHir<$tcx>,
[few] hir_definitions: rustc_hir::definitions::Definitions,
[] hir_owner: rustc_middle::hir::Owner<$tcx>,
[] hir_owner_nodes: rustc_middle::hir::OwnerNodes<$tcx>,
[] indexed_hir: rustc_middle::hir::IndexedHir<$tcx>,
// Note that this deliberately duplicates items in the `rustc_hir::arena`,
// since we need to allocate this type on both the `rustc_hir` arena