Skip to content

Give many impl Iterator return types an ExactSizeIterator bound #66865

Closed

Description

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_iter function to have an ExactSizeIterator bound, we should undo the hack

This issue has been assigned to @hashedone via this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

A-iteratorsArea: IteratorsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions