We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e166409 commit cdba1dcCopy full SHA for cdba1dc
compiler/rustc_middle/src/hir/map/mod.rs
@@ -161,6 +161,10 @@ impl<'hir> Map<'hir> {
161
self.tcx.hir_crate_items(()).items.iter().copied()
162
}
163
164
+ pub fn module_items(self, module: LocalDefId) -> impl Iterator<Item = ItemId> + 'hir {
165
+ self.tcx.hir_module_items(module).items()
166
+ }
167
+
168
pub fn par_for_each_item(self, f: impl Fn(ItemId) + Sync + Send) {
169
par_for_each_in(&self.tcx.hir_crate_items(()).items[..], |id| f(*id));
170
0 commit comments