Skip to content

ExactSizeIterator should be an unsafe trait #958

@theemathas

Description

@theemathas

I think that ExactSizeIterator should be an unsafe trait, so that its invariant can be relied upon by unsafe code.
See also #956 and http://internals.rust-lang.org/t/the-trusted-iterator-length-problem/1302

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions