about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-04-02 13:47:24 +0200
committerGitHub <noreply@github.com>2019-04-02 13:47:24 +0200
commit5e8998a98d044b0af48bab4678a921f46dfa7258 (patch)
tree9f1d7a3c7197065bb47d6fb16a5022fcf15634c7 /src/test/incremental/thinlto
parentd86a8f3563e32b85d47c494bfdd08e4a39b8df4a (diff)
parenta548d835ce29da1e3df044309c962f45a061f260 (diff)
downloadrust-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