Skip to content

Rustdoc should not fail to generate documentation when deep types are involved #62559

Open
@nagisa

Description

@nagisa

Ref. #62059

To fix the referenced issue we raised the recursion limit, however if there is a type that exceeds this limit again, we will start failing to generate documentation for the crate in question and all the dependent crates using these deep types again.

rustdoc uses the regular trait selection mechanism to check for auto-traits, so it is not too easy to make rustdoc to ignore those failures and not generate an entry for the implementation in rustdoc instead of erroring.

Ideal behaviour would be a warning during documentation generation and a missing entry in the "Implementors" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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