Add unused-ignore-comment rule (#15084)

This commit is contained in:
Micha Reiser 2024-12-23 11:15:28 +01:00 committed by GitHub
parent dcb85b7088
commit 2a99c0be02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 284 additions and 61 deletions

View file

@ -3,6 +3,7 @@ use std::hash::BuildHasherDefault;
use rustc_hash::FxHasher;
use crate::lint::{LintRegistry, LintRegistryBuilder};
use crate::suppression::UNUSED_IGNORE_COMMENT;
pub use db::Db;
pub use module_name::ModuleName;
pub use module_resolver::{resolve_module, system_module_search_paths, KnownModule, Module};
@ -47,4 +48,5 @@ pub fn default_lint_registry() -> &'static LintRegistry {
/// Register all known semantic lints.
pub fn register_lints(registry: &mut LintRegistryBuilder) {
types::register_lints(registry);
registry.register_lint(&UNUSED_IGNORE_COMMENT);
}