Skip to content

rustdoc: only show intra_doc_link_resolution_failure lints for items being documented #51684

Closed
@QuietMisdreavus

Description

@QuietMisdreavus

One thing i noticed about this lint is that it's firing for items that aren't even being exported. For example, in this build log, there are a lot of repeat hits for the cfg_if! macro, even though i would not expect all of these crates to be re-exporting the macro. In one particular situation, it seems to have caused a crate with #![deny(warnings)] on it to fail to build, just because of this dependency! We should probably wait to emit these lints until the passes which strip items have been run, to reduce some of these erroneous reports.

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