-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Conversation
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.
(rust-highfive has picked a reviewer for you, use r? to override) |
- Ensure standard public items are accepted - Ensure public items not re-exported from private modules are denied
9610afd
to
992646b
Compare
Will this be able to make it to beta? I can rebase onto beta if needed |
I can nominate it to beta, but considering how old the issue is, I'm not sure it'll be accepted. In any case, I'll approve it once CI pass. |
If you can that would be great. It is low priority but cleans up an annoying little bug. If nomination requires any effort on my side like a rebase, happy to pick it up. |
Nothing on your side, it's done when the release is being done. They cherry-pick the commits from the nominated PRs and that's it. |
Awesome, thanks for letting me know |
I added the tag to the PR and the compiler-team will discuss it at their next meeting once this PR is merged. |
@GuillaumeGomez any updates? |
📌 Commit 992646b has been approved by |
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#92058 (Make Run button visible on hover) - rust-lang#92288 (Fix a pair of mistyped test cases in `std::net::ip`) - rust-lang#92349 (Fix rustdoc::private_doc_tests lint for public re-exported items) - rust-lang#92360 (Some cleanups around check_argument_types) - rust-lang#92389 (Regression test for borrowck ICE rust-lang#92015) - rust-lang#92404 (Fix font size for [src] links in headers) - rust-lang#92443 (Rustdoc: resolve associated traits for non-generic primitive types) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Closes #72081
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.