Skip to content

Implement &P patterns for borrowed ptrs #2855

Closed
@graydon

Description

@graydon

See conclusion of the saga of unsafe pointers trying on caret:

#2826 (comment)

Essentially we decided to leave & as borrowed-ptr, and * as unsafe, and just add a keyword for capture-by-reference since we expect it'll be a rare-ish occurrence in the pattern language.

(or * rather than ref. neither is in the pattern grammar at present. pick one.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: The grammar of RustA-lifetimesArea: Lifetimes / regionsA-type-systemArea: Type system

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions