diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-16 22:54:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 22:54:38 +0000 |
commit | fe17cb7e803eb02649dc25ad92b788546a066549 (patch) | |
tree | a53cc4b3eaee8dc3de496857785438780e0686c0 /CHANGELOG.md | |
parent | 465a8f73134de0eec1bf28c749cc89cece0c7a1a (diff) | |
parent | b9203336208378bedb39df124f2e8e64383ef4fc (diff) | |
download | nix-fe17cb7e803eb02649dc25ad92b788546a066549.zip |
Merge #1243
1243: Apply `repr(transparent)` to several FFI types r=asomers a=asomers
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
Co-authored-by: Alan Somers <asomers@gmail.com>
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e186d946..2e0ec632 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,11 @@ This project adheres to [Semantic Versioning](http://semver.org/). 16KB. (#[1198](https://github.com/nix-rust/nix/pull/1198)) - Fixed unaligned casting of `cmsg_data` to `af_alg_iv` (#[1206](https://github.com/nix-rust/nix/pull/1206)) - Fixed `readlink`/`readlinkat` when reading symlinks longer than `PATH_MAX` (#[1231](https://github.com/nix-rust/nix/pull/1231)) +- `PollFd`, `EpollEvent`, `IpMembershipRequest`, `Ipv6MembershipRequest`, + `TimeVal`, and `IoVec` are now `repr(transparent)`. This is required for + correctness's sake across all architectures and compilers, though now bugs + have been reported so far. + (#[1243](https://github.com/nix-rust/nix/pull/1243)) ### Removed |