diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-09-12 03:19:18 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-10-09 23:47:59 +0200 |
| commit | 1c7f85f17c0ddde890ced0ba4445e122c1ffc093 (patch) | |
| tree | 2ab13a3db430dfb042530e2e8f76fd2723819f1d /compiler/rustc_middle/src/query | |
| parent | c09eaea484c8f7a01741188982447eec88b5caa8 (diff) | |
| download | rust-1c7f85f17c0ddde890ced0ba4445e122c1ffc093.tar.gz rust-1c7f85f17c0ddde890ced0ba4445e122c1ffc093.zip | |
Perform indexing during lowering.
Do not access DefId<->HirId maps before they are initialized.
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index bfded8f710a..e604f59175e 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -40,13 +40,6 @@ rustc_queries! { desc { "get the crate HIR" } } - /// The indexed HIR. This can be conveniently accessed by `tcx.hir()`. - /// Avoid calling this query directly. - query index_hir(_: LocalDefId) -> Option<&'tcx crate::hir::IndexedHir<'tcx>> { - eval_always - desc { "index HIR" } - } - /// The items in a module. /// /// This can be conveniently accessed by `tcx.hir().visit_item_likes_in_module`. @@ -76,7 +69,7 @@ rustc_queries! { /// /// This can be conveniently accessed by methods on `tcx.hir()`. /// Avoid calling this query directly. - query hir_owner_nodes(key: LocalDefId) -> Option<&'tcx crate::hir::OwnerNodes<'tcx>> { + query hir_owner_nodes(key: LocalDefId) -> Option<&'tcx hir::OwnerNodes<'tcx>> { desc { |tcx| "HIR owner items in `{}`", tcx.def_path_str(key.to_def_id()) } } |
