about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2019-03-25 21:12:53 -0700
committerJosh Stone <jistone@redhat.com>2019-03-26 10:13:48 -0700
commit01162d86c533cfb08221bb9475042ca94d1fd002 (patch)
treee6f0ab70e4169ddb797700643a2debfad846c44f /src/test/ui/thinlto
parentd91b32b4dc9db066ab7deedbc51dc62ba597524b (diff)
downloadrust-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/ui/thinlto')
0 files changed, 0 insertions, 0 deletions