From: bors Date: Mon, 15 Aug 2022 03:09:20 +0000 (+0000) Subject: Auto merge of #96350 - austinabell:skip_optimization, r=Mark-Simulacrum X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=80ed61fbd64936ed676c2050e7e660b5ad78c9f2;p=rust.git Auto merge of #96350 - austinabell:skip_optimization, r=Mark-Simulacrum fix(iter::skip): Optimize `next` and `nth` implementations of `Skip` This avoids calling nth/next or nth/nth to first skip elements and then get the next one (unless necessary due to usize overflow). --- 80ed61fbd64936ed676c2050e7e660b5ad78c9f2