diff options
| author | Ulrik Sverdrup <root@localhost> | 2015-02-13 21:20:16 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <root@localhost> | 2015-02-13 21:26:50 +0100 |
| commit | b19fda0ceb820af57f00976951dba95a3c0419aa (patch) | |
| tree | dc8e68e358b658c0d74c79a71e2077799aa9e7a1 /src/test/codegen/stack-alloc-string-slice.rs | |
| parent | cf636c233dfeef5abf0de8fb35e23c0a161810d2 (diff) | |
| download | rust-b19fda0ceb820af57f00976951dba95a3c0419aa.tar.gz rust-b19fda0ceb820af57f00976951dba95a3c0419aa.zip | |
Remove ExactSizeIterator from 64-bit ranges.
Fixes #22047 Range<u64> and Range<i64> may be longer than usize::MAX on 32-bit platforms, and thus they cannot fulfill the protocol for ExactSizeIterator. We don't want a nonobvious platform dependency in basic iterator traits, so the trait impl is removed. The logic of this change assumes that usize is at least 32-bit. This is technically a breaking change; note that Range<usize> and Range<isize> are always ExactSizeIterators. [breaking-change]
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions
