-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Empty structs should not need #[repr(C)] #750
Labels
T-lang
Relevant to the language team, which will review and decide on the RFC.
Comments
Empty structs do not exist in C, and it is not clear what their representation should be. For the case of incomplete types in C headers, something like RFC #709 unsized types would be a better fit. |
This is now covered by |
Centril
added
the
T-lang
Relevant to the language team, which will review and decide on the RFC.
label
Feb 23, 2018
Closing per @scottmcm's comment. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue by cgaebel
Thursday Nov 06, 2014 at 07:50 GMT
For earlier discussion, see rust-lang/rust#18686
This issue was labelled with: in the Rust repository
In a lot of FFI code, I see patterns like:
where
X
is used as an opaque "black-box" object. With rust today,X
needs a#[repr(C)]
. That's not really necessary, and caused a bunch of noisy warnings when updating servo's rust version.Can someone mark this bug as easy so a beginner can use it to get started?
The text was updated successfully, but these errors were encountered: