Skip to content

Commit 0516c2e

Browse files
committed
Move renaming to the right place
1 parent 355018d commit 0516c2e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

clippy_lints/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,10 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
10281028
unwrap::PANICKING_UNWRAP,
10291029
unwrap::UNNECESSARY_UNWRAP,
10301030
]);
1031+
}
10311032

1032-
store.register_renamed("stutter", "module_name_repeat");
1033+
pub fn register_renamed(ls: &mut rustc::lint::LintStore) {
1034+
ls.register_renamed("clippy::stutter", "clippy::module_name_repeat");
10331035
}
10341036

10351037
// only exists to let the dogfood integration test works.

src/driver.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ pub fn main() {
110110
ls.register_group(Some(sess), true, name, deprecated_name, to);
111111
}
112112
clippy_lints::register_pre_expansion_lints(sess, &mut ls, &conf);
113+
clippy_lints::register_renamed(&mut ls);
113114

114115
sess.plugin_llvm_passes.borrow_mut().extend(llvm_passes);
115116
sess.plugin_attributes.borrow_mut().extend(attributes);

0 commit comments

Comments
 (0)