-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustdoc: Don't show hidden trait methods #89198
Conversation
r? @ollie27 (rust-highfive has picked a reviewer for you, use r? to override) |
r? @jyn514 |
9ebb034
to
6b0a4b1
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test for this? It would go in src/test/rustdoc, there are instructions at https://rustc-dev-guide.rust-lang.org/rustdoc-internals.html#dotting-is-and-crossing-ts :)
The code looks great though!
6b0a4b1
to
94abbe8
Compare
94abbe8
to
9fef224
Compare
By skipping trait items whose attributes include `hidden`, we void showing such trait methods.
9fef224
to
3239f06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thank you! r=me with or without the nit (please use r=jyn514
, not r+).
@bors delegate=hkmatsumoto |
✌️ @hkmatsumoto can now approve this pull request |
Co-authored-by: Joshua Nelson <github@jyn.dev>
@bors r=jyn514 |
📌 Commit 195f752 has been approved by |
…arth Rollup of 7 pull requests Successful merges: - rust-lang#88895 (rustdoc: Cleanup `clean` part 2) - rust-lang#88973 (Expose the std_detect env_override feature) - rust-lang#89010 (Add some intra doc links) - rust-lang#89198 (rustdoc: Don't show hidden trait methods) - rust-lang#89216 (Consistent big O notation) - rust-lang#89224 (Change the order of imports suggestions) - rust-lang#89256 (Fix typo in release notes) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
@hkmatsumoto thank you for fixing this, it's awesome work! |
Fix #89186.
By skipping trait items whose attributes include
hidden
, we avoid showing such trait methods.