We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa68e73 commit e64dadaCopy full SHA for e64dada
compiler/rustc_middle/src/hir/map/mod.rs
@@ -168,6 +168,10 @@ impl<'hir> Map<'hir> {
168
par_for_each_in(&self.tcx.hir_crate_items(()).items[..], |id| f(*id));
169
}
170
171
+ pub fn par_for_each_item_in_module(self, module: LocalDefId, f: impl Fn(ItemId) + Sync + Send) {
172
+ par_for_each_in(&self.tcx.hir_module_items(module).items[..], |id| f(*id));
173
+ }
174
+
175
pub fn def_key(self, def_id: LocalDefId) -> DefKey {
176
// Accessing the DefKey is ok, since it is part of DefPathHash.
177
self.tcx.untracked_resolutions.definitions.def_key(def_id)
0 commit comments