Skip to content

Allow class constructors to have typestate constraints #2813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
catamorphism opened this issue Jul 5, 2012 · 1 comment
Closed

Allow class constructors to have typestate constraints #2813

catamorphism opened this issue Jul 5, 2012 · 1 comment

Comments

@catamorphism
Copy link
Contributor

...unless we remove constraints on functions in general. (Not sure whether we came to consensus on that or not.) See FIXME in typeck::collect::convert.

@nikomatsakis
Copy link
Contributor

Not relevant as of commit 41a21f0, which removed current incarnation of typestate.

celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Source changes required by the following upstream commits:

* rust-lang/rust@e8a2673159 Add VariantIdx back
* rust-lang/rust@f14b7c9443 Move FieldIdx and Layout to rustc_target
* rust-lang/rust@b47ad3b744 Bring back generic FieldIdx

Resolves: rust-lang#2813
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants