Skip to content

Track record fields in typestate #888

@catamorphism

Description

@catamorphism
Contributor

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

graydon

graydon commented on Sep 9, 2011

@graydon
Contributor

Significantly more complex. I'd recommend against it.

catamorphism

catamorphism commented on Mar 15, 2012

@catamorphism
ContributorAuthor

I now agree.

removed their assignment
on Jun 16, 2014
added a commit that references this issue on Apr 8, 2017
added a commit that references this issue on Mar 7, 2023
added a commit that references this issue on Aug 5, 2023
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

        Participants

        @graydon@catamorphism

        Issue actions

          Track record fields in typestate · Issue #888 · rust-lang/rust