rustdoc
doesn't show cfg
items that can affect whether an item is available
#66413
Labels
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
It's very frustrating and confusing to read the rustdoc for a crate and go to use some item, only to find out that the item isn't available — and the only way to figure out how to enable it is to read the source of the crate.
Instead, it would be nice to have documentation on items that indicates any
cfg
annotations that affect the the items' compilation.The text was updated successfully, but these errors were encountered: