Skip to content

Replace the current for protocol with external iterators #6997

Closed
@thestinger

Description

@thestinger

The std::iterator::Iterator trait will need a lang item and Iterator implementations on functions will likely have to be forbidden to avoid ambiguity with internal iterators.

The body of the loop won't have to be a closure and return/break will never fail to work as expected.

See: https://mail.mozilla.org/pipermail/rust-dev/2013-June/004364.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions