Iterators vs index loops performance

This came up recently in We all know `iter` is faster than `loop`, but why? - #3 by scottmcm if you're interested in more discussion about it.

I've filed a suggestion to make it a clippy lint:
https://github.com/rust-lang/rust-clippy/issues/6406

2 Likes