-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
I have a module declared as:
#[cfg(all(target_feature="avx2", feature="...", ...))]
pub mod avx2;
where ... are various conditions. Removing the target_feature
condition results in rustdoc documenting the module when the other conditions are met, but I can't get rustdoc to document the module when the target_feature
condition is there. I'm passing the feature to cargo
as
RUSTFLAGS="-C target_feature=+avx2" cargo rustdoc --features "..." -- ...
Since the documentation appears exactly when the target_feature
condition is missing, I suspect that Rustdoc doesn't know about target_feature
?
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.