about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2018-12-01 16:46:03 -0800
committerDavid Tolnay <dtolnay@gmail.com>2018-12-01 17:08:42 -0800
commitc00dcd03d77333cbdf24fb2b79f62e4ab29603a5 (patch)
tree114478a7c3e9e8901924bdae58f021ccf13a46e9
parentc669727df4de8a9b155b4ebd389f56cc68fa3b30 (diff)
downloadrust-c00dcd03d77333cbdf24fb2b79f62e4ab29603a5.tar.gz
rust-c00dcd03d77333cbdf24fb2b79f62e4ab29603a5.zip
Downgrade large_digit_groups to pedantic
I believe if the user already decided to put underscores in their
literal, Clippy should be willing to believe that they put a number of
underscores that they felt was readable.
-rw-r--r--clippy_lints/src/lib.rs3
-rw-r--r--clippy_lints/src/literal_representation.rs2
2 files changed, 2 insertions, 3 deletions
diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs
index 1b970b2f376..9d8ebcde427 100644
--- a/clippy_lints/src/lib.rs
+++ b/clippy_lints/src/lib.rs
@@ -514,6 +514,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
         if_not_else::IF_NOT_ELSE,
         infinite_iter::MAYBE_INFINITE_ITER,
         items_after_statements::ITEMS_AFTER_STATEMENTS,
+        literal_representation::LARGE_DIGIT_GROUPS,
         loops::EXPLICIT_INTO_ITER_LOOP,
         loops::EXPLICIT_ITER_LOOP,
         matches::SINGLE_MATCH_ELSE,
@@ -613,7 +614,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
         lifetimes::EXTRA_UNUSED_LIFETIMES,
         lifetimes::NEEDLESS_LIFETIMES,
         literal_representation::INCONSISTENT_DIGIT_GROUPING,
-        literal_representation::LARGE_DIGIT_GROUPS,
         literal_representation::MISTYPED_LITERAL_SUFFIXES,
         literal_representation::UNREADABLE_LITERAL,
         loops::EMPTY_LOOP,
@@ -794,7 +794,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
         len_zero::LEN_ZERO,
         let_if_seq::USELESS_LET_IF_SEQ,
         literal_representation::INCONSISTENT_DIGIT_GROUPING,
-        literal_representation::LARGE_DIGIT_GROUPS,
         literal_representation::UNREADABLE_LITERAL,
         loops::EMPTY_LOOP,
         loops::FOR_KV_MAP,
diff --git a/clippy_lints/src/literal_representation.rs b/clippy_lints/src/literal_representation.rs
index 5fc97d97426..470ed369564 100644
--- a/clippy_lints/src/literal_representation.rs
+++ b/clippy_lints/src/literal_representation.rs
@@ -90,7 +90,7 @@ declare_clippy_lint! {
 /// ```
 declare_clippy_lint! {
     pub LARGE_DIGIT_GROUPS,
-    style,
+    pedantic,
     "grouping digits into groups that are too large"
 }