about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-07 23:39:12 +0000
committerbors <bors@rust-lang.org>2022-07-07 23:39:12 +0000
commit54feac18d1ad9cc5af1f71dfb34baa32f99630ae (patch)
tree1c011cf4638df7923a0d85603abbdbf5a2a143e7 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent2058b927776201244aa903451674275ff17e1d15 (diff)
parent307b8cd82537b5ac46da2f04cced4e4362835757 (diff)
downloadrust-54feac18d1ad9cc5af1f71dfb34baa32f99630ae.tar.gz
rust-54feac18d1ad9cc5af1f71dfb34baa32f99630ae.zip
Auto merge of #8958 - Alexendoo:simple_filter_map, r=giraffate
Lint simple expressions in `manual_filter_map`, `manual_find_map`

changelog: Lint simple expressions in [`manual_filter_map`], [`manual_find_map`]

The current comparison rules out `.find(|a| a.is_some()).map(|b| b.unwrap())` because `a` being a reference can effect more complicated expressions, this adds a simple check for that case and adds the necessary derefs

There's some overlap with `option_filter_map` so `lint_filter_some_map_unwrap` now returns a `bool` to indicate it linted
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions