Index Modules using their LocalDefId.

This commit is contained in:
Camille GILLOT 2021-01-31 17:58:57 +01:00
parent 7878fa70d6
commit ff14cac621
10 changed files with 27 additions and 38 deletions

View file

@ -496,7 +496,7 @@ pub fn check_crate<'tcx, T: LateLintPass<'tcx>>(
tcx.sess.time("module_lints", || {
// Run per-module lints
par_iter(&tcx.hir().krate().modules).for_each(|(&module, _)| {
tcx.ensure().lint_mod(tcx.hir().local_def_id(module));
tcx.ensure().lint_mod(module);
});
});
},