]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/lib.rs
fix(module_name_repeat): Try to register renamed lint, not valid yet
[rust.git] / clippy_lints / src / lib.rs
index 1abca1751e86b148c2518cbc58ec59b6e39bd0c1..8f528ea83e380386a7709323bca130f95fe6c89a 100644 (file)
@@ -517,8 +517,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
         doc::DOC_MARKDOWN,
         empty_enum::EMPTY_ENUM,
         enum_glob_use::ENUM_GLOB_USE,
-        enum_variants::PUB_ENUM_VARIANT_NAMES,
         enum_variants::MODULE_NAME_REPEAT,
+        enum_variants::PUB_ENUM_VARIANT_NAMES,
         if_not_else::IF_NOT_ELSE,
         infinite_iter::MAYBE_INFINITE_ITER,
         items_after_statements::ITEMS_AFTER_STATEMENTS,
@@ -1028,6 +1028,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
         unwrap::PANICKING_UNWRAP,
         unwrap::UNNECESSARY_UNWRAP,
     ]);
+
+    store.register_renamed("stutter", "module_name_repeat");
 }
 
 // only exists to let the dogfood integration test works.