0119b44270
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 |
||
---|---|---|
.. | ||
memchr.rs | ||
mod.rs | ||
rotate.rs | ||
sort.rs |