Skip to content

intra-doc-link resolution failures should not be reported for cross-crate re-exports #56922

Closed
@euclio

Description

@euclio

Discovered in #56693.

Currently, if a crate re-exports an item from another crate with resolution failures, then those resolution failures get reported for the original crate. Since the downstream crate has no way to fix the resolution failure in the upstream crate, it shouldn't be reported, much like capping lints.

As of this writing, std::io::Error has an intra-link resolution failure in one of its impls. So, the following code triggers the issue.

use std::io::Error;

A fix for this issue should take care to still report failures for re-exports within the same crate.

cc #43466

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameT-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