mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 14:43:24 +00:00
rename to par_for_each_item
This commit is contained in:
parent
a349fc4f7a
commit
a31632b30e
@ -162,7 +162,7 @@ impl<'hir> Map<'hir> {
|
||||
self.tcx.hir_crate_items(()).items.iter().copied()
|
||||
}
|
||||
|
||||
pub fn par_items(self, f: impl Fn(ItemId) + Sync + Send) {
|
||||
pub fn par_for_each_item(self, f: impl Fn(ItemId) + Sync + Send) {
|
||||
par_for_each_in(&self.tcx.hir_crate_items(()).items[..], |id| f(*id));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user