]> git.lizzy.rs Git - rust.git/commit
Add erasing_op lint
authorYury Krivopalov <ykrivopalov@yandex.ru>
Sat, 30 Sep 2017 17:14:00 +0000 (20:14 +0300)
committerYury Krivopalov <ykrivopalov@yandex.ru>
Sat, 14 Oct 2017 09:34:37 +0000 (12:34 +0300)
commit033c99b1baaa87587132debafaa8d2d0ccb7dde8
tree8272efba10f77641eb1586df9a730c3f4400e44b
parentf68e408cb6d0bb0a548b1ed54213e04b245f92cf
Add erasing_op lint

For expressions that can be replaced by a zero.
clippy_lints/src/erasing_op.rs [new file with mode: 0644]
clippy_lints/src/lib.rs
tests/ui/bit_masks.stderr
tests/ui/erasing_op.rs [new file with mode: 0644]
tests/ui/erasing_op.stderr [new file with mode: 0644]