2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-03-08 17:27:29 +00:00
rust-clippy/clippy_lints
bors ac914d3457 Auto merge of - GuillaumeGomez:add-manual_arithmetic_check, r=y21
Extend `implicit_saturating_sub` lint

Fixes .

It can serve as base if we want to add equivalent checks for other arithmetic operations.

Also one important note: when writing this lint, I realized that I could check for wrong conditions performed beforehand on subtraction and added another part in the lint. Considering they both rely on the same checks, I kept both in the same place. Not sure if it makes sense though...

changelog: Extend `implicit_saturating_sub` lint
2024-08-31 16:03:42 +00:00
..
src Auto merge of - GuillaumeGomez:add-manual_arithmetic_check, r=y21 2024-08-31 16:03:42 +00:00
Cargo.toml Replace rustc_semver with rustc_session::RustcVersion 2024-08-09 13:00:24 +00:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.