-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rustdoc impl blocks refer to private names #41072
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
This bug affects reqwest as well. There is a type called |
I believe this bug is fixed now. Let me know if this issue can be closed, or close it yourself. Thanks. |
Hmm, I went to the latest version of the docs.rs page in the OP, but couldn't find |
Also, oops: I didn't mean to close this issue! Thanks for re-opening it. |
I just ran |
$ cat Cargo.toml
[package]
name = "flate2"
version = "0.0.0"
edition = "2021"
$ cat src/lib.rs
mod gz {
pub struct EncoderReader;
impl EncoderReader {
pub fn new() -> EncoderReader {
unimplemented!()
}
}
}
pub use gz::EncoderReader as GzEncoder;
$ cargo doc --open
Finished dev [unoptimized + debuginfo] target(s) in 0.00s
Opening target/doc/flate2/index.html |
Ah, I thought your screenshot was from the crate itself. |
Assigning myself for now to look into this. |
The
flate2
crate is structured roughly like this:The rustdoc of
GzEncoder
is correctly titled but the impl blocks on the page refer to the private name of the type. I would expect the impl blocks and methods to use the public name, just like the top of the page does.The text was updated successfully, but these errors were encountered: