]> git.lizzy.rs Git - rust.git/commit
Auto merge of #8905 - c410-f3r:arith, r=llogiq
authorbors <bors@rust-lang.org>
Thu, 2 Jun 2022 12:05:27 +0000 (12:05 +0000)
committerbors <bors@rust-lang.org>
Thu, 2 Jun 2022 12:05:27 +0000 (12:05 +0000)
commit9428e2e25e95009648b63fa142e85f643a6fbf2d
treebae69a37868ce5ebce8ebd223b28c9a75951098c
parent0d5ace3ed22fdd6ee25ee1dda42139d36c0aeec4
parent4fc0ee6260d686efc128e44b7b0d0e3d820fff20
Auto merge of #8905 - c410-f3r:arith, r=llogiq

[1/N] Implement Arithmetic lint

Assuming that https://github.com/rust-lang/rust-clippy/issues/8903 is OK, this PR starts the creation of the `Arithmetic` lint with configurable types.

My current struggle to get a rustc review inspired me to create smaller PRs in order to easy review and make merges as fast as possible. So the first step here only moves the `arithmetic.rs` file to `numeric_arithmetic.rs` to make room for the new lint.

--
changelog: none
clippy_lints/src/lib.register_lints.rs
clippy_lints/src/lib.rs