about summary refs log tree commit diff
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2018-12-17 13:58:41 +0100
committerflip1995 <hello@philkrones.com>2018-12-17 13:58:41 +0100
commit0516c2e04a620493fe92b82c4cdecf32dae2f96a (patch)
treef4fa81e395007b25bf2306b830725120af8e3d86
parent355018d0860c5aba29045c305adb2b02003e9942 (diff)
downloadrust-0516c2e04a620493fe92b82c4cdecf32dae2f96a.tar.gz
rust-0516c2e04a620493fe92b82c4cdecf32dae2f96a.zip
Move renaming to the right place
-rw-r--r--clippy_lints/src/lib.rs4
-rw-r--r--src/driver.rs1
2 files changed, 4 insertions, 1 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs
index 8f528ea83e3..5c1469536f5 100644
--- a/clippy_lints/src/lib.rs
+++ b/clippy_lints/src/lib.rs
@@ -1028,8 +1028,10 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
         unwrap::PANICKING_UNWRAP,
         unwrap::UNNECESSARY_UNWRAP,
     ]);
+}
 
-    store.register_renamed("stutter", "module_name_repeat");
+pub fn register_renamed(ls: &mut rustc::lint::LintStore) {
+    ls.register_renamed("clippy::stutter", "clippy::module_name_repeat");
 }
 
 // only exists to let the dogfood integration test works.
diff --git a/src/driver.rs b/src/driver.rs
index 6b327d08207..0df2d898860 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -110,6 +110,7 @@ pub fn main() {
                         ls.register_group(Some(sess), true, name, deprecated_name, to);
                     }
                     clippy_lints::register_pre_expansion_lints(sess, &mut ls, &conf);
+                    clippy_lints::register_renamed(&mut ls);
 
                     sess.plugin_llvm_passes.borrow_mut().extend(llvm_passes);
                     sess.plugin_attributes.borrow_mut().extend(attributes);