]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
src/libcore/slice/mod.rs
src/libcore/tests/slice.rs

Simple merge
Simple merge