-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
#[repr(C)] and Drop causes undefined behavior in FFI code #18380
Comments
It seems like the (It should presumably also check for |
This has to be fixed before 1.0. |
nominating; we are unlikely to implement non-zeroing dynamic drop before the 1.0 release (and certainly not before the 1.0 beta). So we probably need to address tis in some way, perhaps a lint as @huonw suggests. Nominating for 1.0 polish. |
Adding a lint is easy. |
This is to some extent a dup of #5016 |
We won't object to someone adding a lint (which would be temporary assuming nonzeroing drop lands eventually). But it also wont block the release. P-high, not 1.0. |
Prints 16.
The text was updated successfully, but these errors were encountered: