Make decimal_literal_representation a restriction lint

This commit is contained in:
flip1995
2018-02-06 13:05:20 +01:00
parent c322a74980
commit 63a7daf78c
5 changed files with 25 additions and 36 deletions

View File

@@ -382,6 +382,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
else_if_without_else::ELSE_IF_WITHOUT_ELSE,
methods::CLONE_ON_REF_PTR,
misc::FLOAT_CMP_CONST,
literal_representation::DECIMAL_LITERAL_REPRESENTATION,
]);
reg.register_lint_group("clippy_pedantic", vec![
@@ -496,7 +497,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
let_if_seq::USELESS_LET_IF_SEQ,
lifetimes::NEEDLESS_LIFETIMES,
lifetimes::UNUSED_LIFETIMES,
literal_representation::DECIMAL_LITERAL_REPRESENTATION,
literal_representation::INCONSISTENT_DIGIT_GROUPING,
literal_representation::LARGE_DIGIT_GROUPS,
literal_representation::UNREADABLE_LITERAL,