Skip to content

Track record fields in typestate #888

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);

Activity

  1. graydon commented on Sep 9, 2011

    @graydon
    Contributor

    Significantly more complex. I'd recommend against it.

  2. catamorphism commented on Mar 15, 2012

    @catamorphism
    ContributorAuthor

    I now agree.

  3. removed their assignment
    on Jun 16, 2014
  4. added a commit that references this issue on Apr 8, 2017
  5. added a commit that references this issue on Mar 7, 2023
  6. added a commit that references this issue on Aug 5, 2023
  7. added 2 commits that reference this issue on Aug 21, 2026
    40c6dd1
    08d1554
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions