Skip to content

Deprecate Vec::get and Vec::get_mut #15672

Closed
@nrc

Description

@nrc

In favour of indexing (#15652). The plan as discussed in #15652 is to deprecate get and get_mut now, change all uses in the compiler to indexing, then remove at some point in the future. At some other point >= the future we reinstate get/get_mut as returning Option<T>, but that stage is to be confirmed later when we have a wider discussion about ergonomics.

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