Closed
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
?