We should use crate visibility in implementation details like std::sys. #69737
Open
Description
@pnkfelix brought up during the compiler meeting that #67705 is "adding a pub fn
to std::sys::windows
", which turned out not to be a concern as std::sys
itself is private.
However I think it would be helpful (and prevent accidental reexports), if everything under std::sys
(and anything like it) had crate
-level visibility instead of pub
.
cc @rust-lang/libs
Activity