diff options
| author | Josh Stone <jistone@redhat.com> | 2019-03-25 21:12:53 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2019-03-26 10:13:48 -0700 |
| commit | 01162d86c533cfb08221bb9475042ca94d1fd002 (patch) | |
| tree | e6f0ab70e4169ddb797700643a2debfad846c44f /src/test/incremental/thinlto | |
| parent | d91b32b4dc9db066ab7deedbc51dc62ba597524b (diff) | |
| download | rust-01162d86c533cfb08221bb9475042ca94d1fd002.tar.gz rust-01162d86c533cfb08221bb9475042ca94d1fd002.zip | |
Implement useful steps_between for all integers
We can use `usize::try_from` to convert steps from any size of integer. This enables a meaningful `size_hint()` for larger ranges, rather than always just `(0, None)`. Now they return the true `(len, Some(len))` when it fits, otherwise `(usize::MAX, None)` for overflow.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
