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

Fix missing modules because of missing unindent doc comment in early intra-doc pass #96216

Conversation

GuillaumeGomez
Copy link
Member

Fixes #96079.

Copying/pasting my explanation from #96079:

Figured the problem: the doc block hasn't been cleaned yet in the early intra doc links pass. Meaning that it interprets the link as a code block (because of the indent) and therefore doesn't load the associated module.

I didn't find a way to be able to run the unindent pass before the early intra-doc link pass unfortunately, so instead I check beforehand if there is a point into looking for a link instead the doc comment before doing anything. Hopefully, this shouldn't impact performance too much...

cc @petrochenkov
r? @notriddle

@rust-highfive
Copy link
Collaborator

Some changes occurred in clean/types.rs.

cc @camelid

@rustbot rustbot added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Apr 19, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 19, 2022
@petrochenkov
Copy link
Contributor

This fix is already a part of #96135.

@GuillaumeGomez
Copy link
Member Author

Please include my second commit then (the one containing the regression test). Once done, please close this PR. :)

@petrochenkov
Copy link
Contributor

I've cherry-picked the test commit into #96135, so closing this PR.

@GuillaumeGomez GuillaumeGomez deleted the intra-doc-missing-unindent branch April 19, 2022 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler error on nightly cargo doc invocation on fltk-rs repository
5 participants