Make std::os::unix::ucred module private by kadiwa4 · Pull Request #122147 · rust-lang/rust (original) (raw)

Tracking issue: #42839

Currently, this unstable module exists: std::os::unix::ucred.
All it does is provide UCred (which is also available from std::os::unix::net), impl_* (which is probably a mishap and should be private) and peer_cred (which is undocumented but has a documented counterpart at std::os::unix:🥅:UnixStream::peer_cred).

This PR makes the entire ucred module private and moves it into net, because that's where it is used.

I hope it's fine to simply remove it without a deprecation phase. Otherwise, I can add back a deprecated reexport module std::os::unix::ucred.

@rustbot label: -T-libs +T-libs-api