From: kennytm Date: Wed, 17 Jan 2018 17:57:13 +0000 (+0800) Subject: Rollup merge of #47333 - arthurprs:iter-position-bounds-check, r=dtolnay X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=175dd84ed8969fe136a4da1c7e5fe1d9c7693f2d;p=rust.git Rollup merge of #47333 - arthurprs:iter-position-bounds-check, r=dtolnay Optimize slice.{r}position result bounds check Second attempt of https://github.com/rust-lang/rust/pull/45501 Fixes https://github.com/rust-lang/rust/issues/45964 Demo: https://godbolt.org/g/N4mBHp --- 175dd84ed8969fe136a4da1c7e5fe1d9c7693f2d