Skip to content

Commit 355018d

Browse files
committed
fix(module_name_repeat): Try to register renamed lint, not valid yet
1 parent 15b9e9f commit 355018d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ All notable changes to this project will be documented in this file.
760760
[`mistyped_literal_suffixes`]: https://rust-lang.github.io/rust-clippy/master/index.html#mistyped_literal_suffixes
761761
[`mixed_case_hex_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_case_hex_literals
762762
[`module_inception`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
763+
[`module_name_repeat`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repeat
763764
[`modulo_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_one
764765
[`multiple_crate_versions`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
765766
[`multiple_inherent_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_inherent_impl
@@ -850,7 +851,6 @@ All notable changes to this project will be documented in this file.
850851
[`string_extend_chars`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_extend_chars
851852
[`string_lit_as_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes
852853
[`string_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_to_string
853-
[`stutter`]: https://rust-lang.github.io/rust-clippy/master/index.html#stutter
854854
[`suspicious_arithmetic_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl
855855
[`suspicious_assignment_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_assignment_formatting
856856
[`suspicious_else_formatting`]: https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting

clippy_lints/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
517517
doc::DOC_MARKDOWN,
518518
empty_enum::EMPTY_ENUM,
519519
enum_glob_use::ENUM_GLOB_USE,
520-
enum_variants::PUB_ENUM_VARIANT_NAMES,
521520
enum_variants::MODULE_NAME_REPEAT,
521+
enum_variants::PUB_ENUM_VARIANT_NAMES,
522522
if_not_else::IF_NOT_ELSE,
523523
infinite_iter::MAYBE_INFINITE_ITER,
524524
items_after_statements::ITEMS_AFTER_STATEMENTS,
@@ -1028,6 +1028,8 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
10281028
unwrap::PANICKING_UNWRAP,
10291029
unwrap::UNNECESSARY_UNWRAP,
10301030
]);
1031+
1032+
store.register_renamed("stutter", "module_name_repeat");
10311033
}
10321034

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

0 commit comments

Comments
 (0)