Skip to content

Track record fields in typestate #888

@catamorphism

Description

@catamorphism

It seems harmless to also allow typestate constraints to mention immutable fields of records -- for example, letting you write:

check type_has_static_size(cx.tcx, t);

instead of

let tcx = cx.tcx;
check type_has_static_size(tcx, t);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions