-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redesign the std::iter::Step trait, tweak related iterator impls for ranges #43127
Closed
Commits on Jul 24, 2017
-
Configuration menu - View commit details
-
Copy full SHA for d103522 - Browse repository at this point
Copy the full SHA d103522View commit details -
Don’t reset RangeInclusive to 1...0 after last iteration.
Instead try to set start to end+1, and if that overflows set end to start-1.
Configuration menu - View commit details
-
Copy full SHA for 3e8a762 - Browse repository at this point
Copy the full SHA 3e8a762View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5334226 - Browse repository at this point
Copy the full SHA 5334226View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32d963e - Browse repository at this point
Copy the full SHA 32d963eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d4dc29 - Browse repository at this point
Copy the full SHA 9d4dc29View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0b4440 - Browse repository at this point
Copy the full SHA c0b4440View commit details -
Configuration menu - View commit details
-
Copy full SHA for b270e7f - Browse repository at this point
Copy the full SHA b270e7fView commit details -
Remove ExactSizeIterator impls for RangeInclusive<{i16,u16}>
They are incorrect on 16-bit platforms since the return value of `len()` might overflow `usize`. Impls for `Range<u32>` and `Range<i32>` are similarly incorrect, but were stabilized in Rust 1.0.0 so removing them would be a breaking change. `(0..66_000_u32).len()` for example will compile without error or warnings on 16-bit platforms, but panic at run-time.
Configuration menu - View commit details
-
Copy full SHA for 287ce4c - Browse repository at this point
Copy the full SHA 287ce4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for eed9884 - Browse repository at this point
Copy the full SHA eed9884View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a62269 - Browse repository at this point
Copy the full SHA 0a62269View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ac7fca - Browse repository at this point
Copy the full SHA 0ac7fcaView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.