-
Notifications
You must be signed in to change notification settings - Fork 13.3k
bad rustdoc ux: trait method implementations have their docstrings ommitted in the "implementors" section #92641
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
Comments
|
@fmease , I still don't see docs at link you provided. I mean I see implementation itself, but I don't see docs, i. e. I don't see text "Takes each element in the My browser is Google Chrome 103.0.5060.53 on Debian Stretch |
Oh my bad, I misread the issue. The documentation Takes each element […] is not shown on the All in all, this doesn't appear to be a rustdoc issue. |
@fmease , thanks for explanation. I think rustdoc should show full docs in implementors. Or at least provide a link to full docs. In current form this docs are too hard to find |
clarifying this issue because it took me a bit to understand: if you go to the "implementors" section on a trait page, you will simply get a list of impl items, along with any documentation that appears on the block itself: if you go to the "trait implementations" section on a type page, you will get a collapsible list of impl blocks, including the contents of the impl block, such as documentation on method implemenations: this inconsistency is confusing, since, for traits that have only a single method, implementors sometimes document details of their implementation on that method, and sometimes they do so on the impl block itself. |
I opened documentation of FromIterator ( https://doc.rust-lang.org/std/iter/trait.FromIterator.html ), then I scrolled to section "Implementors" and found this implementation:
This implementation was not documented on this page. I clicked "[src]" and was able to see docs in source. So, I thought that there is some bug in rustdoc, which causes this docs not to render. Then I opened page on Result ( https://doc.rust-lang.org/std/result/enum.Result.html ) and (susprisiongly) found that this impl is documented there! So, for unknown reasons rustdoc shows this doc on Result page, but doesn't show it on FromIterator page
The text was updated successfully, but these errors were encountered: