Skip to content

Improve rustdoc strippers #138168

Open
Open
@GuillaumeGomez

Description

@GuillaumeGomez

Currently, rustdoc goes through multiple passes to inline reexports, remove hidden/private items.

First, we go through the whole crate AST, to convert types into rustdoc types (although the rustdoc types are now more and more just wrapper around rustc types), then we run these passes. However: couldn't we do the stripping as part of this conversion?

It could also potentially help with performance in cases like #137534.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-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