diff options
| author | Niv Kaminer <nivkner@zoho.com> | 2019-07-26 18:56:47 +0300 |
|---|---|---|
| committer | Niv Kaminer <nivkner@zoho.com> | 2019-07-26 18:56:47 +0300 |
| commit | d7b211025ef4fface0f3cd3a01ec19d0b08d7cf6 (patch) | |
| tree | adcf09384c2fa14a4fb01b3bf009f0ed3e791b87 /src/libstd | |
| parent | 1a563362865e6051d4c350544131228e8eff5138 (diff) | |
| download | rust-d7b211025ef4fface0f3cd3a01ec19d0b08d7cf6.tar.gz rust-d7b211025ef4fface0f3cd3a01ec19d0b08d7cf6.zip | |
add repr(transparent) to IoSliceMut where missing
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys/unix/io.rs | 1 | ||||
| -rw-r--r-- | src/libstd/sys/wasi/io.rs | 1 | ||||
| -rw-r--r-- | src/libstd/sys/windows/io.rs | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/io.rs b/src/libstd/sys/unix/io.rs index 72954ff20ef..bc854e772e1 100644 --- a/src/libstd/sys/unix/io.rs +++ b/src/libstd/sys/unix/io.rs @@ -29,6 +29,7 @@ impl<'a> IoSlice<'a> { } } +#[repr(transparent)] pub struct IoSliceMut<'a> { vec: iovec, _p: PhantomData<&'a mut [u8]>, diff --git a/src/libstd/sys/wasi/io.rs b/src/libstd/sys/wasi/io.rs index cc8f1e16fa0..a5bddad708b 100644 --- a/src/libstd/sys/wasi/io.rs +++ b/src/libstd/sys/wasi/io.rs @@ -29,6 +29,7 @@ impl<'a> IoSlice<'a> { } } +#[repr(transparent)] pub struct IoSliceMut<'a> { vec: __wasi_iovec_t, _p: PhantomData<&'a mut [u8]>, diff --git a/src/libstd/sys/windows/io.rs b/src/libstd/sys/windows/io.rs index c045a63e911..f0da2323f4f 100644 --- a/src/libstd/sys/windows/io.rs +++ b/src/libstd/sys/windows/io.rs @@ -29,6 +29,7 @@ impl<'a> IoSlice<'a> { } } +#[repr(transparent)] pub struct IoSliceMut<'a> { vec: c::WSABUF, _p: PhantomData<&'a mut [u8]>, |
