Skip to content

rustdoc doesn't honor #![doc(html_no_source)] across crates #55957

Open
@QuietMisdreavus

Description

@QuietMisdreavus

There's an attribute you can apply to your crate, #![doc(html_no_source)], that tells rustdoc to not generate [src] links or their corresponding files for that crate. However, if a dependency of this crate doesn't add this attribute, and then re-exports something from that crate, it will happily generate [src] links... to nonexistent pages. We should probably track this flag on a per-crate basis for all dependencies, rather than only looking for it in the active crate.

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