We should use crate visibility in implementation details like std::sys. #69737
Labels
A-visibility
Area: Visibility / privacy
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
@pnkfelix brought up during the compiler meeting that #67705 is "adding a
pub fn
tostd::sys::windows
", which turned out not to be a concern asstd::sys
itself is private.However I think it would be helpful (and prevent accidental reexports), if everything under
std::sys
(and anything like it) hadcrate
-level visibility instead ofpub
.cc @rust-lang/libs
The text was updated successfully, but these errors were encountered: