rust/src/libcore/slice
bors 0119b44270 Auto merge of #47772 - arthurprs:iter-position-bounds-check, r=dtolnay
Use the slice length to hint the optimizer about iter.position result

Using the len of the iterator doesn't give the same result.
That's also why we can't generalize it to all TrustedLen iterators.

Problem demo: https://godbolt.org/g/MXg2ae
Fix demo: https://godbolt.org/g/P8q5aZ

Second attempt of #47333
Third attempt of #45501
Fixes #45964
2018-01-28 10:41:34 +00:00
..
memchr.rs memchr: fix variable name in docstrings 2018-01-01 14:03:49 +07:00
mod.rs Auto merge of #47772 - arthurprs:iter-position-bounds-check, r=dtolnay 2018-01-28 10:41:34 +00:00
rotate.rs
sort.rs