diff options
| author | blyxyas <blyxyas@gmail.com> | 2024-02-09 19:30:47 +0100 |
|---|---|---|
| committer | blyxyas <blyxyas@gmail.com> | 2024-02-09 19:30:47 +0100 |
| commit | 4ef1790b4e593b02366f0eb5a0bfda6d825b2630 (patch) | |
| tree | 43ef596c5c2afb7b319682bfcad012de3b315764 /compiler/rustc_lint/src/late.rs | |
| parent | e59d9b171ed276ede55765c63c75381b47549e07 (diff) | |
| download | rust-4ef1790b4e593b02366f0eb5a0bfda6d825b2630.tar.gz rust-4ef1790b4e593b02366f0eb5a0bfda6d825b2630.zip | |
tidy
Diffstat (limited to 'compiler/rustc_lint/src/late.rs')
| -rw-r--r-- | compiler/rustc_lint/src/late.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_lint/src/late.rs b/compiler/rustc_lint/src/late.rs index 773baf2eaca..d3d7698e7f9 100644 --- a/compiler/rustc_lint/src/late.rs +++ b/compiler/rustc_lint/src/late.rs @@ -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); |
