Index Modules using their LocalDefId.
This commit is contained in:
parent
7878fa70d6
commit
ff14cac621
10 changed files with 27 additions and 38 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue