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

Implement Immutable for UnsafeCell<()>? #1834

Open
joshlf opened this issue Oct 6, 2024 · 0 comments
Open

Implement Immutable for UnsafeCell<()>? #1834

joshlf opened this issue Oct 6, 2024 · 0 comments

Comments

@joshlf
Copy link
Member

joshlf commented Oct 6, 2024

IIUC the intention of UnsafeCell's design is for it to have no effect on zero-sized memory regions. However, I'm not sure if that's actually true right now - it might be the case that rustc or Miri may not play nicely with this assumption.

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

1 participant