Skip to content
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

Don’t recommend empty enums for opaque types #82

Merged
merged 3 commits into from
Aug 10, 2018

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Aug 8, 2018

Supersedes #44 (which seems to have gone stale).

Fixes #29.

@gnzlbg
Copy link
Contributor

gnzlbg commented Aug 10, 2018

LGTM.

cc @ubsan @eddyb @steveklabnik

@strega-nil
Copy link

I'd rather have an explicit opaque type in the language, but in lieu of that, this is better than before.

@gnzlbg
Copy link
Contributor

gnzlbg commented Aug 10, 2018

@ubsan there is an already merged RFC for that (rust-lang/rust#43467). This PR only updates the nomicon with better practices for the features that the language currently has. Once extern types are finished, this will need updating again.

Copy link
Member

@steveklabnik steveklabnik left a comment

Choose a reason for hiding this comment

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

Thanks!

@steveklabnik steveklabnik merged commit 4b3335d into rust-lang:master Aug 10, 2018
@strega-nil
Copy link

@gnzlbg ooh! cool! I've never seen that! :D

@RalfJung RalfJung deleted the ffi branch August 16, 2019 17:38
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.

5 participants