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:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-07-18 02:58:59 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-10-09 13:05:52 +0000
commitfa380a82a5886768d0509222dc0d49db231a3403 (patch)
tree28e81f50e84957430fa67eecc65ac233c3bae7ae /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parentc0784109daa00f2e43c1b55becc2169bc5b3bf6f (diff)
downloadrust-fa380a82a5886768d0509222dc0d49db231a3403.tar.gz
rust-fa380a82a5886768d0509222dc0d49db231a3403.zip
Start uplifting `clippy::for_loops_over_fallibles`
I refactored the code:
- Removed handling of methods, as it felt entirely unnecessary
- Removed clippy utils (obviously...)
- Used some shiny compiler features
  (let-else is very handy for lints :eyes:)
- I also renamed the lint to `for_loop_over_fallibles` (note: no `s`).
  I'm not sure what's the naming convention here, so maybe I'm wrong.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions