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

1  2 
src/libcore/iter/range.rs

Simple merge