]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #73490 - CAD97:range-unchecked-stepping, r=Amanieu
authorbors <bors@rust-lang.org>
Tue, 14 Jul 2020 08:56:06 +0000 (08:56 +0000)
committerbors <bors@rust-lang.org>
Tue, 14 Jul 2020 08:56:06 +0000 (08:56 +0000)
commitc724b67e1b474262917a5154d74e7072267593fe
tree41a041b6e60f64d3eb8cf2d58534c5cb5ebfbd1f
parent4a689da944977496fb758cc2d700984cc6a10b7f
parent7779a11448927e208ed6eb9bb609dd23595f77ce
Auto merge of #73490 - CAD97:range-unchecked-stepping, r=Amanieu

Use step_unchecked more liberally in range iter impls

Without these `_unchecked`, these operations on iterators of `char` fail to optimize out the unreachable panicking condition on overflow.

cc @cuviper https://github.com/rayon-rs/rayon/pull/771 where this was discovered.
src/libcore/iter/range.rs