diff options
| author | Matt Brubeck <mbrubeck@limpet.net> | 2021-09-28 12:50:38 -0700 |
|---|---|---|
| committer | Matt Brubeck <mbrubeck@limpet.net> | 2021-09-28 12:50:38 -0700 |
| commit | 830ecbd96ce30e3885663512ed94cbd347e64615 (patch) | |
| tree | 1f5824c8a5ecec64f0d2d9fe54192b1f22dd669f /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 8f8092cc32ec171becef8ceacec7dbb06c5d7d7e (diff) | |
| download | rust-830ecbd96ce30e3885663512ed94cbd347e64615.tar.gz rust-830ecbd96ce30e3885663512ed94cbd347e64615.zip | |
Optimize is_sorted for Range and RangeInclusive
The `Step` trait guarantees that `Range<impl Step>` yields items in sorted order. We can override the `Iterator::is_sorted` method based on this guarantee, as we already do for `Iterator::min` and `max`.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
