-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Give many impl Iterator return types an ExactSizeIterator bound #66865
Copy link
Copy link
Closed
Labels
A-iteratorsArea: IteratorsArea: IteratorsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-iteratorsArea: IteratorsArea: IteratorsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
E.g. in https://github.com/rust-lang/miri/pull/1083/files?utf8=%E2%9C%93&diff=unified&w=1#r352037361 we had to use weird code to check that the iterator is the same length as a slice.
After changing the
fn args_iterfunction to have an ExactSizeIterator bound, we should undo the hackThis issue has been assigned to @hashedone via this comment.