Skip to content

MIR-borrowck: print named fields with .name rather than .<num> #44974

Closed
@pnkfelix

Description

@pnkfelix

The MIR-borrowck printing of Lvalues visible to end-users prints accesses to a named struct/enum field with a description like obj.3 instead of obj.field.

This needs to be fixed before MIR-borrowck is usable in real-world.

(And fixing it sooner would probably make developing MIR-borrowck a bit more enjoyable.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-borrow-checkerArea: The borrow checkerA-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.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