diff options
| author | mgr-inz-rafal <rchabowski@gmail.com> | 2019-12-26 13:34:18 +0100 |
|---|---|---|
| committer | mgr-inz-rafal <rchabowski@gmail.com> | 2019-12-28 16:46:08 +0100 |
| commit | f191e916bdbb98ef91a35b3c82376b3c517654fb (patch) | |
| tree | a2b06b8d5c78ebe68096ada48c9bf6a3892d519f /src | |
| parent | 0fec5905d87fdee8d3d6a065cdd450972fb588b8 (diff) | |
| download | rust-f191e916bdbb98ef91a35b3c82376b3c517654fb.tar.gz rust-f191e916bdbb98ef91a35b3c82376b3c517654fb.zip | |
Add new lint (modulo_arithmetic)
Diffstat (limited to 'src')
| -rw-r--r-- | src/lintlist/mod.rs | 9 |
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", |
