Skip to content
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

Some trait methods don't appear in the docs of types that implement the trait #2078

Closed
ahjones opened this issue Oct 17, 2024 · 2 comments
Closed
Labels
A-Content The written content on the website. C-Bug Something isn't working.

Comments

@ahjones
Copy link

ahjones commented Oct 17, 2024

What needs to be fixed?

Here's a specific example: the doc for Bufreader doesn't include the method lines in the Bufreader impl section. Other methods like has_data_left are documented. Both has_data_left and lines are default methods, and yet only one of them is described.

It's causing an issue because I can't find if a method is implemented on a structure by searching through the structure's documentation.

Page(s) Affected

https://doc.rust-lang.org/std/io/struct.BufReader.html#impl-BufRead-for-BufReader%3CR%3E

I believe I've seen the same issue elsewhere, but I don't have an example to hand right now.

@ahjones ahjones added A-Content The written content on the website. C-Bug Something isn't working. labels Oct 17, 2024
@Manishearth
Copy link
Member

This is a repository for the main website (not docs), rustdoc bugs are rust-lang/rust.

I suspect this has to do with the Sizes bound.

@Manishearth Manishearth closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2024
@ahjones
Copy link
Author

ahjones commented Oct 17, 2024

Created here: rust-lang/rust#131839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Content The written content on the website. C-Bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants