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

Avoid the use of #[cfg(doc)] in std_detect #1283

Merged
merged 2 commits into from
Feb 17, 2022

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Feb 16, 2022

This doesn't work when building the standard library docs since that
cfg flag is not passed to dependencies.

@rust-highfive
Copy link

@Amanieu: no appropriate reviewer found, use r? to override

@adamgemmell
Copy link
Contributor

Much more clever than my solution with the macro use! I see this also marks the required error macros as stable.

Could we put in #[doc(cfg(...))] attributes too?

This doesn't work when building the standard library docs since that
cfg flag is not passed to dependencies.
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
@Amanieu Amanieu merged commit b4a0e07 into rust-lang:master Feb 17, 2022
@Amanieu Amanieu deleted the no_cfg_doc branch February 17, 2022 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants