about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-02-23 02:44:16 -0500
committerGitHub <noreply@github.com>2025-02-23 02:44:16 -0500
commit4493159b350f0d61c0eee4ef92fde6e91610ba57 (patch)
tree3ac4c69291b7c4ca5fbde1d7b17d7fdaccc69c72 /compiler/rustc_data_structures/src
parent307f1609e943b8dec28917142b13dde5470cc0ed (diff)
parent70f11ee0c063fa85dff72306c2ec29532b8cabeb (diff)
downloadrust-4493159b350f0d61c0eee4ef92fde6e91610ba57.tar.gz
rust-4493159b350f0d61c0eee4ef92fde6e91610ba57.zip
Rollup merge of #136826 - xizheyin:issue-136737, r=thomcc
Replace mem::zeroed with mem::MaybeUninit::uninit for large struct in Unix

As discussion in #136737.

- Replace `mem::zeroed()` with `MaybeUninit::uninit()` for `sockaddr_storage` in `accept()` and `recvfrom()` since these functions fill in the address structure
- Replace `mem::zeroed()` with `MaybeUninit::uninit()` for `pthread_attr_t` in thread-related functions since `pthread_attr_init()` initializes the structure
- Add references to man pages to document this behavior
Diffstat (limited to 'compiler/rustc_data_structures/src')
0 files changed, 0 insertions, 0 deletions