Skip to content

Apply repr(transparent) to several FFI types#1243

Merged
bors[bot] merged 1 commit intonix-rust:masterfrom
asomers:pollfd_transparent
May 16, 2020
Merged

Apply repr(transparent) to several FFI types#1243
bors[bot] merged 1 commit intonix-rust:masterfrom
asomers:pollfd_transparent

Conversation

@asomers
Copy link
Copy Markdown
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
Copy Markdown
Member Author

asomers commented May 16, 2020

bors r+

@bors
Copy link
Copy Markdown
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