Skip to content

Better FFI discipline #27548

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

Merged
merged 1 commit into from
Aug 6, 2015
Merged

Better FFI discipline #27548

merged 1 commit into from
Aug 6, 2015

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Aug 5, 2015

pub type UNWIND_HISTORY_TABLE = c_void;
// Opaque structs.
enum CONTEXT {}
enum UNWIND_HISTORY_TABLE {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe these will need to stay pub to satisfy the no-private-types-exposed-in-public-signatures check

Other than that can you also remove the // Opaque struct comment on both of these? (it's pretty self explanatory).

r=me after those two nits!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@alexcrichton
Copy link
Member

@bors: r+ 05a8142

@bors
Copy link
Collaborator

bors commented Aug 6, 2015

⌛ Testing commit 05a8142 with merge b81ab8a...

@bors bors merged commit 05a8142 into rust-lang:master Aug 6, 2015
@tamird tamird deleted the opaque-ctypes branch August 6, 2015 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants