Skip to content

rustdoc still doesn't handle renames in reexports correctly  #42675

@kennytm

Description

@kennytm

Test case:

mod internal {
    pub struct BadName;
    impl BadName {
        pub fn f(&self) {}
    }
}
pub use internal::BadName as GoodName;

Running rustdoc a.rs, it produces this page:

screenshot_2017-06-15 21 11 37_38miri

Note that the impl still refers to the struct as BadName. The fix for #34473 is not enough.

Real world example:

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