about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-09-04 12:14:41 +0000
committerbors <bors@rust-lang.org>2019-09-04 12:14:41 +0000
commitffe57fad85ffa8561bd5ead77353337d7de23139 (patch)
treec07c345862159304e20be89b3c429854d2074080 /src/test/incremental/thinlto
parenta2c4b2b8da3347e9c7632592fbd978d4a97a931d (diff)
parentc6fb9c8a2a2e4a661573c49134e16f70df635860 (diff)
downloadrust-ffe57fad85ffa8561bd5ead77353337d7de23139.tar.gz
rust-ffe57fad85ffa8561bd5ead77353337d7de23139.zip
Auto merge of #4498 - sinkuu:checked_arithmetic_unwrap, r=flip1995
Add manual_saturating_arithmetic lint

changelog: add `manual_saturating_arithmetic` lint

Fixes #1557. This lint detects manual saturating arithmetics like `x.checked_add(10u32).unwrap_or(u32::max_value())` and suggests replacing with `x.saturating_add(10u32)`.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions