rust/src/libstd/sys/windows
Mazdak Farrokhzad 4ad743c022
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
2019-07-27 17:40:49 +02:00
..
ext std: Add more accessors for Metadata on Windows 2019-07-26 07:35:59 -07:00
alloc.rs libstd => 2018 2019-02-28 04:06:15 +09:00
args.rs Revert "Add implementations of last in terms of next_back on a bunch of DoubleEndedIterators." 2019-05-22 14:09:34 -07:00
c.rs std: win: Disable stack overflow handling on UWP 2019-07-25 21:30:08 +02:00
cmath.rs Remove licenses 2018-12-25 21:08:33 -07:00
compat.rs libstd: windows: compat: Allow use of attributes 2019-07-25 21:30:08 +02:00
condvar.rs libstd => 2018 2019-02-28 04:06:15 +09:00
env.rs Remove licenses 2018-12-25 21:08:33 -07:00
fast_thread_local.rs Revert "ensure fast thread local lookups occur once per access on macos" 2019-05-15 07:30:33 -07:00
fs.rs std: Add more accessors for Metadata on Windows 2019-07-26 07:35:59 -07:00
handle.rs Stabilized vectored IO 2019-04-27 08:34:08 -07:00
io.rs add repr(transparent) to IoSliceMut where missing 2019-07-26 18:56:47 +03:00
memchr.rs Cosmetic improvements 2019-01-13 19:47:02 +00:00
mod.rs std: win: Disable stack overflow handling on UWP 2019-07-25 21:30:08 +02:00
mutex.rs fix some uses I missed 2019-03-26 09:23:19 +01:00
net.rs std: win: Don't use SetHandleInformation on UWP 2019-07-25 21:30:08 +02:00
os.rs std: win: Don't use GetUserProfileDirectoryW on UWP 2019-07-25 21:30:08 +02:00
os_str.rs libstd: deny(elided_lifetimes_in_paths) 2019-03-31 12:56:51 +02:00
path.rs Remove needless lifetimes 2019-07-01 12:15:27 +02:00
pipe.rs std: win: Don't use SetHandleInformation on UWP 2019-07-25 21:30:08 +02:00
process.rs std: win: Don't use SetHandleInformation on UWP 2019-07-25 21:30:08 +02:00
rand.rs std: rand: Use BCrypt on UWP 2019-07-25 21:30:08 +02:00
rwlock.rs libstd => 2018 2019-02-28 04:06:15 +09:00
stack_overflow.rs libstd => 2018 2019-02-28 04:06:15 +09:00
stack_overflow_uwp.rs std: win: Disable stack overflow handling on UWP 2019-07-25 21:30:08 +02:00
stdio.rs Fix rebase fail 2019-02-28 04:06:17 +09:00
stdio_uwp.rs std: win: Don't use console APIs on UWP 2019-07-25 21:30:08 +02:00
thread.rs Eliminate FnBox usages from libstd. 2019-04-10 09:40:44 +08:00
thread_local.rs libstd => 2018 2019-02-28 04:06:15 +09:00
time.rs std: Avoid usage of Once in Instant 2019-04-04 07:19:14 -07:00