Skip to content

Commit 7e0ab75

Browse files
committed
Fix imports.
1 parent 9a227ca commit 7e0ab75

File tree

1 file changed

+1
-6
lines changed
  • compiler/rustc_middle/src/hir/map

1 file changed

+1
-6
lines changed

compiler/rustc_middle/src/hir/map/mod.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::hir::Owner;
22
use crate::ty::{DefIdTree, TyCtxt};
33
use rustc_ast as ast;
4-
use rustc_data_structures::sync::{par_for_each_in, Send, Sync};
4+
use rustc_data_structures::sync::{par_for_each_in, par_iter, ParallelIterator, Send, Sync};
55
use rustc_hir::def::{DefKind, Res};
66
use rustc_hir::def_id::{DefId, LocalDefId, CRATE_DEF_ID};
77
use rustc_hir::definitions::{DefKey, DefPath, DefPathHash};
@@ -510,10 +510,6 @@ impl<'hir> Map<'hir> {
510510
}
511511

512512
pub fn par_body_owners<F: Fn(LocalDefId) + Sync + Send>(self, f: F) {
513-
use rustc_data_structures::sync::{par_iter, ParallelIterator};
514-
#[cfg(parallel_compiler)]
515-
use rustc_rayon::iter::IndexedParallelIterator;
516-
517513
par_iter(&*self.krate().owners).for_each(|&owner| {
518514
let owner_info = self.tcx.lower_to_hir(owner).unwrap();
519515
par_iter(owner_info.nodes.bodies.range(..)).for_each(|(local_id, _)| {
@@ -666,7 +662,6 @@ impl<'hir> Map<'hir> {
666662

667663
#[cfg(parallel_compiler)]
668664
pub fn par_for_each_module(self, f: impl Fn(LocalDefId) + Sync) {
669-
use rustc_data_structures::sync::{par_iter, ParallelIterator};
670665
par_iter_submodules(self.tcx, CRATE_DEF_ID, &f);
671666

672667
fn par_iter_submodules<F>(tcx: TyCtxt<'_>, module: LocalDefId, f: &F)

0 commit comments

Comments
 (0)