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

Missing UnsafeCell::raw_get #276

Open
kvark opened this issue Jun 1, 2022 · 1 comment
Open

Missing UnsafeCell::raw_get #276

kvark opened this issue Jun 1, 2022 · 1 comment

Comments

@kvark
Copy link
Contributor

kvark commented Jun 1, 2022

See https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.raw_get

@hawkw
Copy link
Member

hawkw commented Jun 2, 2022

Because Loom's UnsafeCell contains additional data for tracking its state in the model, I'm not sure if it can be used with MaybeUninit in the same way as the std UnsafeCell. But, if there are other reasons this method would be useful, we could definitely still add it!

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