Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
QuietMisdreavus opened this issue Nov 14, 2018 · 1 comment
Open

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

QuietMisdreavus opened this issue Nov 14, 2018 · 1 comment
Labels
C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@QuietMisdreavus
Copy link
Member

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.

@QuietMisdreavus QuietMisdreavus added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Nov 14, 2018
@jyn514 jyn514 added the C-bug Category: This is a bug. label Aug 25, 2020
@kadiwa4
Copy link
Contributor

kadiwa4 commented Jan 28, 2023

No change; still an issue (nightly 1.69.0 2023-01-22).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants