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

Apply repr(transparent) to several FFI types #1243

Merged
merged 1 commit into from
May 16, 2020

Conversation

asomers
Copy link
Member

@asomers asomers commented May 16, 2020

repr(transparent) is required in order to safely cast between an FFI
type and its NewType. This commit applies that attribute to PollFd,
EpollEvent, IpMembershipRequest, Ipv6MembershipRequest, TimeVal, and
IoVec.

Fixes #1241

repr(transparent) is required in order to safely cast between an FFI
type and its NewType.  This commit applies that attribute to PollFd,
EpollEvent, IpMembershipRequest, Ipv6MembershipRequest, TimeVal, and
IoVec.

Fixes nix-rust#1241
@asomers
Copy link
Member Author

asomers commented May 16, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented May 16, 2020

Build succeeded:

@bors bors bot merged commit fe17cb7 into nix-rust:master May 16, 2020
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.

PollFd should be repr(transparent)
1 participant