Skip to content

Broken links when linking to publicly re-exported private items from another crate. #159

@Shadow53

Description

@Shadow53

I ran into this with miette::Report and miette::Diagnostic, but I believe it is not specific to just miette.

I have a struct defined something like this (simplified):

use miette::{Diagnostic, Report};

/// This implements [`Diagnostic`] and contains a [`Report`].
#[derive(Diagnostic)]
struct MyDiagnostic {
    #[diagnostic_source]
    source: Report,
}

When running cargo deadlinks --check-intra-doc-links, Report and Diagnostic get flagged, as well as Diagnostic::labels and Diagnostic::source_code, where the latter two are linked in echo other's doc strings.

Report and Diagnostic are only publicly accessible at the top level, as shown in the example, but are privately defined at miette::eyreish::Report and miette::protocol::Diagnostic, respectively.

If I view the generated docs, clicking a link takes me to a page that redirects to the correct page, so these links are not actually "broken".

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-waiting-on-authorStatus: Waiting on the author of this PR or issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions