diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-09 17:42:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-09 17:42:24 +0200 |
| commit | 7e98ec507932a250b421257f2200c457949b4c99 (patch) | |
| tree | de759fc4d6d2168b72dd2c35f432048e41c50db3 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 457a23fabe4caecb5b18c0d6a801f1393a4dac80 (diff) | |
| parent | 78908f2e0963ceed461e9961020226d3e12c5978 (diff) | |
| download | rust-7e98ec507932a250b421257f2200c457949b4c99.tar.gz rust-7e98ec507932a250b421257f2200c457949b4c99.zip | |
Rollup merge of #64121 - timvermeulen:iter_step_by_internal, r=scottmcm
Override `StepBy::{try_fold, try_rfold}`
Previous PR: https://github.com/rust-lang/rust/pull/51435
The previous PR was closed in favor of https://github.com/rust-lang/rust/pull/51601, which was later reverted. I don't think these implementations will make it harder to specialize `StepBy<Range<_>>` later, so we should be able to land this without any consequences.
This should fix https://github.com/rust-lang/rust/issues/57517 – in my benchmarks `iter` and `iter.step_by(1)` now perform equally well, provided internal iteration is used.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
