Doc comments only apply to the first #[cfg]
item, even if another is ultimately selected.
#91147
Labels
C-discussion
Category: Discussion or questions that doesn't represent real issues.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
The above is only seen on release builds; on debug builds, no warning is output.
The doc comment should apply to whichever piece of code is actually compiled. Is there a way to achieve this without duplicating the comment?
The text was updated successfully, but these errors were encountered: