diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-02 13:47:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-02 13:47:24 +0200 |
| commit | 5e8998a98d044b0af48bab4678a921f46dfa7258 (patch) | |
| tree | 9f1d7a3c7197065bb47d6fb16a5022fcf15634c7 /src/test/incremental/thinlto | |
| parent | d86a8f3563e32b85d47c494bfdd08e4a39b8df4a (diff) | |
| parent | a548d835ce29da1e3df044309c962f45a061f260 (diff) | |
| download | rust-5e8998a98d044b0af48bab4678a921f46dfa7258.tar.gz rust-5e8998a98d044b0af48bab4678a921f46dfa7258.zip | |
Rollup merge of #59444 - cuviper:steps_between, r=scottmcm
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
