1
Fork 0

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

@ -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" }
}