Move internal lints to their own crate (#13223)

This makes it so switching the internal feature on/off no longer
rebuilds `clippy_lints`.

r? @flip1995

changelog: none
This commit is contained in:
Timo 2025-04-18 12:04:08 +00:00 committed by GitHub
commit 781fdab9a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
63 changed files with 295 additions and 333 deletions

View file

@ -158,7 +158,8 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
let conf = clippy_config::Conf::read(sess, &conf_path);
clippy_lints::register_lints(lint_store, conf);
clippy_lints::register_pre_expansion_lints(lint_store, conf);
#[cfg(feature = "internal")]
clippy_lints_internal::register_lints(lint_store);
}));
config.extra_symbols = clippy_utils::sym::EXTRA_SYMBOLS.into();