diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-04-10 19:07:57 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-04-12 15:22:03 +0300 |
| commit | 7c40a6fb34d29fce69a16b7b65871999ef3d1628 (patch) | |
| tree | ddfe313880b51f543b7e5c753d986007b64963b6 /compiler/rustc_middle/src/query | |
| parent | 9be9b5e09ad834e2ba9f2571ca17059e18f89b71 (diff) | |
| download | rust-7c40a6fb34d29fce69a16b7b65871999ef3d1628.tar.gz rust-7c40a6fb34d29fce69a16b7b65871999ef3d1628.zip | |
resolve: Pre-compute non-reexport module children
Instead of repeating the same logic by walking HIR during metadata encoding. The only difference is that we are no longer encoding `macro_rules` items, but we never currently need them as a part of this list. They can be encoded separately if this need ever arises. `module_reexports` is also un-querified, because I don't see any reasons to make it a query, only overhead.
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 2f6b7a3c860..ef9f91f8859 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -1516,10 +1516,6 @@ rustc_queries! { desc { "getting traits in scope at a block" } } - query module_reexports(def_id: LocalDefId) -> &'tcx [ModChild] { - desc { |tcx| "looking up reexports of module `{}`", tcx.def_path_str(def_id.to_def_id()) } - } - query impl_defaultness(def_id: DefId) -> hir::Defaultness { desc { |tcx| "looking up whether `{}` is a default impl", tcx.def_path_str(def_id) } cache_on_disk_if { def_id.is_local() } |
