about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-12 08:54:26 +0000
committerbors <bors@rust-lang.org>2024-03-12 08:54:26 +0000
commita8a737172801f7f6afb74659fae95004b5da6f53 (patch)
tree37c539ab8948281f29444ef22e3686afb6c740c0 /compiler/rustc_mir_transform/src/coverage/mod.rs
parent60f7f0669b3951957b6a0ddf1f55f602bce08d8f (diff)
parent301d293ef6cc1aeb341b31a5339f7d857a38b930 (diff)
downloadrust-a8a737172801f7f6afb74659fae95004b5da6f53.tar.gz
rust-a8a737172801f7f6afb74659fae95004b5da6f53.zip
Auto merge of #12417 - Alexendoo:iter-nth, r=flip1995
Move `iter_nth` to `style`, add machine applicable suggestion

There's no `O(n)` involved with `.iter().nth()` on the linted types since the iterator implementations provide `nth` and/or `advance_by` that operate in `O(1)`

For slice iterators the codegen is equivalent, `VecDeque`'s iterator seems to codegen differently but that doesn't seem significant enough to keep it as a perf lint

changelog: [`iter_nth`] Move to `style`

r? `@flip1995`
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions