Skip to content

Separate the Res::Local case from hir::ExprKind::Path. #53591

Open
@eddyb

Description

@eddyb

All other things an expression can refer to, have DefIds.
If we separate them, then we can use a proper HirId for hir::ExprKind::Local, and maybe even refactor the current hir::def::Res enum away.

Somewhat related to #53553.

cc @nikomatsakis @michaelwoerister

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-HIRArea: The high-level intermediate representation (HIR)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions