Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upIn rustdoc, omit trait impls that a user cannot call #42323
Comments
dtolnay
referenced this issue
May 31, 2017
Closed
Hide trait impls that are inaccessible to users #106
steveklabnik
added
the
T-dev-tools
label
May 31, 2017
This comment has been minimized.
This comment has been minimized.
|
I'd go one step further and hide or de-prioritize/collapse even more useless information in inlined trait documentation:
|
Mark-Simulacrum
added
the
C-feature-request
label
Jul 27, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dtolnay commentedMay 31, 2017
The rustdoc of
Publicdisplays aFromimpl that cannot be invoked by users of the crate.I'm sure there are lots of edge cases to consider, but this is a common pattern especially for error types for use with
?. It would be nice to hide such impls from rustdoc without requiring the crate author to tag them with#[doc(hidden)].This came up during the libz blitz evaluation of the reqwest crate. seanmonstar/reqwest#106