Uh oh!
There was an error while loading. Please reload this page.
rustdoc: Don't show hidden trait methods - #89198
Conversation
rust-highfive
commented
Sep 23, 2021
r? @ollie27 (rust-highfive has picked a reviewer for you, use r? to override) |
hkmatsumoto
commented
Sep 23, 2021
r? @jyn514 |
Uh oh!
There was an error while loading. Please reload this page.
9ebb034 to
6b0a4b1Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
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
94abbe8CompareUh oh!
There was an error while loading. Please reload this page.
94abbe8 to
9fef224CompareBy skipping trait items whose attributes include `hidden`, we void showing such trait methods.
9fef224 to
3239f06Compare
jyn514
left a comment
There was a problem hiding this comment.
This is great, thank you! r=me with or without the nit (please use r=jyn514, not r+).
Uh oh!
There was an error while loading. Please reload this page.
jyn514
commented
Sep 25, 2021
@bors delegate=hkmatsumoto |
bors
commented
Sep 25, 2021
✌️ @hkmatsumoto can now approve this pull request |
Co-authored-by: Joshua Nelson <github@jyn.dev>
hkmatsumoto
commented
Sep 25, 2021
@bors r=jyn514 |
bors
commented
Sep 25, 2021
📌 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
jyn514
commented
Sep 26, 2021
@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.