diff options
| author | Jeremy Stucki <stucki.jeremy@gmail.com> | 2019-08-15 22:56:16 +0200 |
|---|---|---|
| committer | Jeremy Stucki <stucki.jeremy@gmail.com> | 2019-08-15 22:58:32 +0200 |
| commit | f4f31a4ff40a6763bb9adf7413773f3a6e701dd9 (patch) | |
| tree | e802a3ec94e3b49d57b623822dcd0d2f97dd1f5b /src/lintlist | |
| parent | f95c87ecea0a885c8dd16c19a38dc3b46ab0754b (diff) | |
| download | rust-f4f31a4ff40a6763bb9adf7413773f3a6e701dd9.tar.gz rust-f4f31a4ff40a6763bb9adf7413773f3a6e701dd9.zip | |
Implement lint 'suspicious_map'
Diffstat (limited to 'src/lintlist')
| -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 c02cdcdbd45..2d4520fb228 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; 309] = [ +pub const ALL_LINTS: [Lint; 310] = [ Lint { name: "absurd_extreme_comparisons", group: "correctness", @@ -1737,6 +1737,13 @@ pub const ALL_LINTS: [Lint; 309] = [ module: "formatting", }, Lint { + name: "suspicious_map", + group: "pedantic", + desc: "suspicious usage of map", + deprecation: None, + module: "methods", + }, + Lint { name: "suspicious_op_assign_impl", group: "correctness", desc: "suspicious use of operators in impl of OpAssign trait", |
