about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authormgr-inz-rafal <rchabowski@gmail.com>2019-12-26 13:34:18 +0100
committermgr-inz-rafal <rchabowski@gmail.com>2019-12-28 16:46:08 +0100
commitf191e916bdbb98ef91a35b3c82376b3c517654fb (patch)
treea2b06b8d5c78ebe68096ada48c9bf6a3892d519f /src
parent0fec5905d87fdee8d3d6a065cdd450972fb588b8 (diff)
downloadrust-f191e916bdbb98ef91a35b3c82376b3c517654fb.tar.gz
rust-f191e916bdbb98ef91a35b3c82376b3c517654fb.zip
Add new lint (modulo_arithmetic)
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index bdbe06c5f27..08cbff40444 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -6,7 +6,7 @@ pub use lint::Lint;
 pub use lint::LINT_LEVELS;
 
 // begin lint list, do not remove this comment, it’s used in `update_lints`
-pub const ALL_LINTS: [Lint; 341] = [
+pub const ALL_LINTS: [Lint; 342] = [
     Lint {
         name: "absurd_extreme_comparisons",
         group: "correctness",
@@ -1184,6 +1184,13 @@ pub const ALL_LINTS: [Lint; 341] = [
         module: "enum_variants",
     },
     Lint {
+        name: "modulo_arithmetic",
+        group: "restriction",
+        desc: "any modulo arithmetic statement",
+        deprecation: None,
+        module: "modulo_arithmetic",
+    },
+    Lint {
         name: "modulo_one",
         group: "correctness",
         desc: "taking a number modulo 1, which always returns 0",