-
Notifications
You must be signed in to change notification settings - Fork 6
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
CopyCell::set has undefined behavior #5
Comments
Yes, I'd need The only use case I have for this is swapping references around in a tree. Would having a |
As to previous comment, using Aliasing would have been possible with a regular The soundness of
In practice, I've been using this crate in a couple of projects, in no cases, running with I'll keep this issue open until either |
toolshed/src/cell.rs
Lines 10 to 12 in e42cd8c
toolshed/src/cell.rs
Lines 61 to 68 in e42cd8c
This is writing through
&T
withoutstd::cell::UnsafeCell
being involved at all. UnfortunatelyUnsafeCell
is currently notCopy
, so as far as I understandCopyCell
cannot be made sound until something like rust-lang/rust#55207 is implemented.The text was updated successfully, but these errors were encountered: