about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-16 08:44:58 +0000
committerbors <bors@rust-lang.org>2022-09-16 08:44:58 +0000
commit481dc2e81cf6e5b68095a6baa5d005a2edf59e01 (patch)
tree03a5c5e82c663d9998492a5d4dd5103ca6ecd0f7 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parent56a8ef4dbe13a537e18ad6cdb0e1dabd25a1250a (diff)
parentc6219b2ece469a17e3c6d7e28e0acbd6ce5c9d44 (diff)
downloadrust-481dc2e81cf6e5b68095a6baa5d005a2edf59e01.tar.gz
rust-481dc2e81cf6e5b68095a6baa5d005a2edf59e01.zip
Auto merge of #9409 - DesmondWillowbrook:iter_kv_map, r=xFrednet
Add `iter_kv_map` lint

fixes #9376

| before | after |
| -------------- | ------------------------- |
| `hmap.iter().map(\|(key, _)\| key)` | `hmap.keys()` |
| `hmap.iter().map(\|(_, v)\| v + 2)` | `hmap.values().map(\|v\| v + 2)` |
| `hmap.into_iter().map(\|(key, _)\| key)` | `hmap.into_keys()` |

Is `MachineApplicable`

changelog: [`iter_kv_map`]: added lint
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions