Skip to content

Make mtwt resolution part of the HIR lowering #29782

Closed
@nrc

Description

@nrc

Currently we do the resolution step of mtwt lazily and on demand in name resolution and (unfortunately) elsewhere. That means we have to keep the (big) tables around longer than is nice and means we are open to hygiene bugs where people forget to do mtwt resolution.

A better solution is to eagerly do mtwt resolution as part of the HIR lowering step. This also means no more Idents in the HIR, only Names, which is a plus.

Happy to mentor this, it's probably better as a second or third bug than a first though since its not super easy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-HIRArea: The high-level intermediate representation (HIR)A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions