about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2024-08-05 18:23:48 -0400
committerJason Newcomb <jsnewcomb@pm.me>2025-04-12 17:53:36 -0400
commit5b4b463d4925d2ccc56afbf83a2f0e4a50b0f56c (patch)
tree00ea17151e827168665748508d3b9c2dbd7236f0 /src
parentec105bab2f29abe73f55bbf9e9aefcf143e88383 (diff)
downloadrust-5b4b463d4925d2ccc56afbf83a2f0e4a50b0f56c.tar.gz
rust-5b4b463d4925d2ccc56afbf83a2f0e4a50b0f56c.zip
Move internal lints to their own crate
Diffstat (limited to 'src')
-rw-r--r--src/driver.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/driver.rs b/src/driver.rs
index c6b3c06baa4..7837ecbdb84 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -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);
         }));
 
         // FIXME: #4825; This is required, because Clippy lints that are based on MIR have to be