Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRange<u64> implements ExactSizeIterator #22047
Comments
sfackler
added
the
A-libs
label
Feb 7, 2015
This comment has been minimized.
This comment has been minimized.
|
I checked the code and it turns out the impl is conditional -- only on 64-bit platforms. So that's correct and for me it turned into a different question of whether that kind of platform dependence is good. I've started a discussion about that here. |
bluss
closed this
Feb 7, 2015
bluss
reopened this
Feb 13, 2015
This comment has been minimized.
This comment has been minimized.
|
Reopened, got some voices backing that this is a bug. Soft solution would be to warn on using that particular impl of ExactSizeIterator for Range and i64, but I don't know if we can even do that. Otherwise we can just remove the impls. |
bluss
pushed a commit
to bluss/rust
that referenced
this issue
Feb 13, 2015
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Feb 14, 2015
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Feb 15, 2015
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Feb 15, 2015
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Feb 15, 2015
bors
closed this
in
#22299
Feb 16, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bluss commentedFeb 7, 2015
What does
(0..std::u64::MAX).size_hint()return on a 32-bit build?Range<u64>andRange<i64>cannot fulfill the requirements of the ExactSizeIterator trait, and the implementations must be removed.