diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-29 11:18:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-29 11:18:13 +0200 |
| commit | 75edfe204beeff8b4bb8473c279fd16253e6567f (patch) | |
| tree | 3e1dd57efbd3f73cba4befc0c406d64687612c6f /src/test/rustdoc-ui/coverage/basic.rs | |
| parent | 94a066e229e2f6f4efbde1ae3caa067b0aaa69a2 (diff) | |
| parent | b533aff9275aad7cd7dfbf42ca6b387fc93ed1d3 (diff) | |
| download | rust-75edfe204beeff8b4bb8473c279fd16253e6567f.tar.gz rust-75edfe204beeff8b4bb8473c279fd16253e6567f.zip | |
Rollup merge of #62163 - cuviper:unix-uninit, r=RalfJung
Avoid mem::uninitialized() in std::sys::unix For `libc` types that will be initialized in FFI calls, we can just use `MaybeUninit` and then pass around raw pointers. For `sun_path_offset()`, which really wants `offset_of`, all callers have a real `sockaddr_un` available, so we can use that reference. r? @RalfJung
Diffstat (limited to 'src/test/rustdoc-ui/coverage/basic.rs')
0 files changed, 0 insertions, 0 deletions
