Skip to content

Rustdoc impl blocks refer to private names #41072

Open
@dtolnay

Description

@dtolnay

The flate2 crate is structured roughly like this:

mod gz {
    pub struct EncoderReader;

    impl EncoderReader {
        pub fn new() -> EncoderReader {
            unimplemented!()
        }
    }
}

pub use gz::EncoderReader as GzEncoder;

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.


selection_030

Metadata

Metadata

Assignees

Labels

A-local-reexportsArea: Documentation that has been locally re-exported (i.e., non-cross-crate)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions