Skip to content

We should use crate visibility in implementation details like std::sys. #69737

Description

@eddyb

@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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-visibilityArea: Visibility / privacyC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions