about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-27 17:40:49 +0200
committerGitHub <noreply@github.com>2019-07-27 17:40:49 +0200
commit4ad743c022c725a62bafa7a2795fcc2055afb124 (patch)
tree44bdb564a0e800395dd53994e875f6ea0d20d53d /src/test/incremental/thinlto
parentb25d74fa49049a18528605034e414b31860dc0f6 (diff)
parentd7b211025ef4fface0f3cd3a01ec19d0b08d7cf6 (diff)
downloadrust-4ad743c022c725a62bafa7a2795fcc2055afb124.tar.gz
rust-4ad743c022c725a62bafa7a2795fcc2055afb124.zip
Rollup merge of #63013 - nivkner:ffi-safe-slice, r=sfackler
add `repr(transparent)` to `IoSliceMut` where missing

tried using `IoSliceMut` in FFI, got `improper_ctypes` warning.

according to the docs: `IoSliceMut` is  "guaranteed to be ABI compatible with the `iovec` type" so it should be usable in FFI.
`IoSlice` is also `repr(transparent)` for every platform where these types contain `iovec`-like types.
vxworks also has `IoSliceMut` as transparent so its not even consistently one or the other.

no comment about this next to the types or in the PR that introduced the types, so assuming this was just missed.

r? @sfackler
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions