-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
mem::swap doesn't work with Objects #6
Comments
The ideal fix for this would be to make NSObjects not |
If rust-lang/rfcs#709 were accepted, this could be resolved by marking NSObjects as |
The unsized types RFC was postponed as rust-lang/rfcs#813. |
If rust-lang/rfcs#1861 is accepted, we could fix this by making Object an opaque extern type. |
The extern types RFC was accepted and implemented! Stabilization tracked in rust-lang/rust#43467. |
Getting mutable references to void types is undefined behaviour to begin with, will file an issue. |
More `no_std` support
For example, the following code:
Expected output:
Actual output:
We cannot have the expected output happen, because an NSObject's memory address cannot change after it has been constructed.
The text was updated successfully, but these errors were encountered: