about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorUlrik Sverdrup <root@localhost>2015-02-13 21:20:16 +0100
committerUlrik Sverdrup <root@localhost>2015-02-13 21:26:50 +0100
commitb19fda0ceb820af57f00976951dba95a3c0419aa (patch)
treedc8e68e358b658c0d74c79a71e2077799aa9e7a1 /src/rustllvm/ExecutionEngineWrapper.cpp
parentcf636c233dfeef5abf0de8fb35e23c0a161810d2 (diff)
downloadrust-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/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions