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 doc failure in CI on master #4020

Merged
merged 1 commit into from Aug 3, 2021
Merged

Fix doc failure in CI on master #4020

merged 1 commit into from Aug 3, 2021

Conversation

Darksonn
Copy link
Contributor

@Darksonn Darksonn commented Aug 3, 2021

I merged #3213 and CI on master broke. This PR fixes that by not generating the module when generating documentation if Tokio is not the crate being documented.

Note that the problem fixed by this also existed in released versions of Tokio — we just didn't run into it before now. For example, trust-dns-proto had a failed documentation build on docs.rs because they tried to enable the docsrs flag for dependencies when building documentation, but since Tokio was a dependency, and not the crate being documented, that resulted in Tokio failing to compile for the same reasons as why CI on master broke for us.

@Darksonn Darksonn added T-docs Topic: documentation A-tokio Area: The main tokio crate A-tokio-stream Area: The tokio-stream crate labels Aug 3, 2021
@Darksonn Darksonn mentioned this pull request Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate A-tokio-stream Area: The tokio-stream crate T-docs Topic: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants