about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-02-12 20:09:59 -0500
committerGitHub <noreply@github.com>2025-02-12 20:09:59 -0500
commit4ce473ccbaddcbf6f3a6882dba700d5ee3bf51c7 (patch)
treef49833fb62e64e1f6f95f042e1bd6366082c35ed /compiler/rustc_codegen_gcc
parent0de2341fefd17bd48809f06a3bed2d5d2074cbd4 (diff)
parent80c60fe78375cb10a2fed6540dc2b29751fc4263 (diff)
downloadrust-4ce473ccbaddcbf6f3a6882dba700d5ee3bf51c7.tar.gz
rust-4ce473ccbaddcbf6f3a6882dba700d5ee3bf51c7.zip
Rollup merge of #136699 - joboet:netaddr_from_inner, r=cuviper
std: replace the `FromInner` implementation for addresses with private conversion functions

Having these implementation available crate-wide means that platforms not using sockets for their networking code have to stub out the libc definitions required to support them. This PR moves the conversions to private helper functions that are only available where actually needed.

I also fixed the signature of the function converting from a C socket address to a Rust one: taking a reference to a `sockaddr_storage` resulted in unsound usage inside  `LookupHost::next`, which could create a reference to a structure smaller than `sockaddr_storage`. Thus I've replaced the argument type with a pointer and made the function `unsafe`.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions