Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up#[repr(C)] and Drop causes undefined behavior in FFI code #18380
Comments
bstrie
added
I-wrong
A-ffi
labels
Oct 28, 2014
huonw
added
the
A-lint
label
Nov 4, 2014
This comment has been minimized.
This comment has been minimized.
|
It seems like the (It should presumably also check for |
This comment has been minimized.
This comment has been minimized.
|
This has to be fixed before 1.0. |
This comment has been minimized.
This comment has been minimized.
|
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. |
pnkfelix
added
the
I-nominated
label
Feb 3, 2015
brson
added
the
E-easy
label
Feb 5, 2015
This comment has been minimized.
This comment has been minimized.
|
Adding a lint is easy. |
This comment has been minimized.
This comment has been minimized.
|
This is to some extent a dup of #5016 |
This comment has been minimized.
This comment has been minimized.
|
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. |
mahkoh commentedOct 28, 2014
Prints 16.