]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #47333 - arthurprs:iter-position-bounds-check, r=dtolnay
authorkennytm <kennytm@gmail.com>
Wed, 17 Jan 2018 17:57:13 +0000 (01:57 +0800)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2018 17:57:13 +0000 (01:57 +0800)
commit175dd84ed8969fe136a4da1c7e5fe1d9c7693f2d
treee273945750e0615538bc5314972aeee154425c71
parent283ee544586a0952a9a45782f42addc9dbac3392
parent0b56ab0f7b0c5e01611b7ea6a28c77bc09c26275
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
src/libcore/slice/mod.rs
src/libcore/tests/slice.rs