This commit is contained in:
blyxyas 2024-02-09 19:30:47 +01:00
parent e59d9b171e
commit 4ef1790b4e
No known key found for this signature in database
GPG Key ID: 9698805551971573

View File

@ -368,10 +368,7 @@ pub fn late_lint_mod<'tcx, T: LateLintPass<'tcx> + 'tcx>(
if late_module_passes.is_empty() {
late_lint_mod_inner(tcx, module_def_id, context, builtin_lints);
} else {
let mut passes: Vec<_> = late_module_passes
.iter()
.map(|mk_pass| (mk_pass)(tcx))
.collect();
let mut passes: Vec<_> = late_module_passes.iter().map(|mk_pass| (mk_pass)(tcx)).collect();
passes.push(Box::new(builtin_lints));
let pass = RuntimeCombinedLateLintPass { passes: &mut passes[..] };
late_lint_mod_inner(tcx, module_def_id, context, pass);