Make index_hir incremental.
This commit is contained in:
parent
ed3c8e86cb
commit
c09eaea484
6 changed files with 113 additions and 140 deletions
|
@ -42,9 +42,8 @@ rustc_queries! {
|
|||
|
||||
/// The indexed HIR. This can be conveniently accessed by `tcx.hir()`.
|
||||
/// Avoid calling this query directly.
|
||||
query index_hir(_: ()) -> &'tcx crate::hir::IndexedHir<'tcx> {
|
||||
query index_hir(_: LocalDefId) -> Option<&'tcx crate::hir::IndexedHir<'tcx>> {
|
||||
eval_always
|
||||
no_hash
|
||||
desc { "index HIR" }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue