Skip to content

Commit

Permalink
Add storage attribute to HIR queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Mar 16, 2020
1 parent 2e1eb89 commit 9bac16a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ rustc_queries! {
// This can be conveniently accessed by methods on `tcx.hir()`.
// Avoid calling this query directly.
query hir_owner(key: DefId) -> &'tcx HirOwner<'tcx> {
storage(caches::LocalDenseDefIdCacheSelector<&'tcx HirOwner<'tcx>>)
eval_always
}

Expand All @@ -83,6 +84,7 @@ rustc_queries! {
// This can be conveniently accessed by methods on `tcx.hir()`.
// Avoid calling this query directly.
query hir_owner_items(key: DefId) -> &'tcx HirOwnerItems<'tcx> {
storage(caches::LocalDenseDefIdCacheSelector<&'tcx HirOwnerItems<'tcx>>)
eval_always
}

Expand Down

0 comments on commit 9bac16a

Please sign in to comment.