Skip to content

MIR-borrowck: paths off of statics should not be borrow-checked #45129

Closed
@pnkfelix

Description

@pnkfelix

Paths off of statics should not be borrow-checked, as they already require unsafe. But currently MIR-borrowck is flagging errors for them, while AST-borrowck lets them through without complaint.

(Spawned off of #44985 (review))

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-borrow-checkerArea: The borrow checkerC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions