Skip to content

rustdoc::formats::Cache does not contain enough data to unwrap type aliases #138617

Open
@lolbinarycat

Description

@lolbinarycat

rustdoc has a lot of issues handling type aliases, and I think a large part of that is due to the fact that once the cleaned ast is constructed, type aliases are essentially opaque, and code cannot see what type they point to.

clean::TypeAlias does exist, but there's no way to get that from a Path item, which is what shows up in type args.

I encountered this when working on #138574

Metadata

Metadata

Assignees

No one assigned

    Labels

    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