diff options
| author | blyxyas <blyxyas@gmail.com> | 2024-09-07 12:13:03 +0200 |
|---|---|---|
| committer | blyxyas <blyxyas@gmail.com> | 2024-10-19 16:20:51 +0200 |
| commit | 637d5cc56fcc11afadd4ffaefa237c11f47cdfee (patch) | |
| tree | 7a7aac9650257f6419d7208b78221db9f74809b6 /src/librustdoc | |
| parent | 71b4d108c7e71c15c0f61d737ebdc0e1cf559d3c (diff) | |
Remove module passes filtering
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/lint.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/librustdoc/lint.rs b/src/librustdoc/lint.rs index 679fc45df76..2afb9e549d9 100644 --- a/src/librustdoc/lint.rs +++ b/src/librustdoc/lint.rs @@ -2,7 +2,7 @@ use std::sync::LazyLock as Lazy; use rustc_data_structures::fx::FxHashMap; use rustc_lint::LintStore; -use rustc_lint_defs::{Lint, LintId, LintPass, declare_tool_lint}; +use rustc_lint_defs::{Lint, LintId, declare_tool_lint}; use rustc_session::{Session, lint}; /// This function is used to setup the lint initialization. By default, in rustdoc, everything @@ -31,10 +31,9 @@ where allowed_lints.extend(lint_opts.iter().map(|(lint, _)| lint).cloned()); let lints = || { - lint::builtin::HardwiredLints::default() - .get_lints() + lint::builtin::HardwiredLints::lint_vec() .into_iter() - .chain(rustc_lint::SoftLints::default().get_lints()) + .chain(rustc_lint::SoftLints::lint_vec()) }; let lint_opts = lints() |
