Skip to content
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

Track record fields in typestate #888

Closed
catamorphism opened this issue Sep 9, 2011 · 2 comments
Closed

Track record fields in typestate #888

catamorphism opened this issue Sep 9, 2011 · 2 comments

Comments

@catamorphism
Copy link
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);
@ghost ghost assigned catamorphism Sep 9, 2011
@graydon
Copy link
Contributor

graydon commented Sep 9, 2011

Significantly more complex. I'd recommend against it.

@catamorphism
Copy link
Contributor Author

I now agree.

@catamorphism catamorphism removed their assignment Jun 16, 2014
bors added a commit that referenced this issue Apr 8, 2017
Add safe wrapper for atomic_compilerfence intrinsics

This PR adds a proposed safe wrapper for the `atomic_singlethreadfence_*` intrinsics introduced by [RFC #888](rust-lang/rfcs#888). See #41091 for further discussion.
ZuseZ4 added a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
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