Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rustdoc::private_doc_tests lint for public re-exported items #92349

Merged
merged 2 commits into from
Jan 6, 2022

Commits on Dec 28, 2021

  1. Fix rustdoc::private_doc_tests lint for public re-exported items

    This involves changing the lint to check the access level is exported,
    rather than public. The exported access level accounts for public items
    and items accessible to other crates with the help of `pub use`
    re-exports. The pattern of re-exporting public items from a private
    module is usage seen in a number of popular crates.
    avitex committed Dec 28, 2021
    Configuration menu
    Copy the full SHA
    b0a1a44 View commit details
    Browse the repository at this point in the history
  2. Improve rustdoc::private_doc_tests tests

    - Ensure standard public items are accepted
    - Ensure public items not re-exported from private modules are denied
    avitex committed Dec 28, 2021
    Configuration menu
    Copy the full SHA
    992646b View commit details
    Browse the repository at this point in the history