From f191e916bdbb98ef91a35b3c82376b3c517654fb Mon Sep 17 00:00:00 2001 From: mgr-inz-rafal Date: Thu, 26 Dec 2019 13:34:18 +0100 Subject: Add new lint (modulo_arithmetic) --- src/lintlist/mod.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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", @@ -1183,6 +1183,13 @@ pub const ALL_LINTS: [Lint; 341] = [ deprecation: None, 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", -- cgit 1.4.1-3-g733a5