Skip to content

Commit c262de9

Browse files
lu-zeroAmanieu
authored andcommitted
Fix the powerpc feature guards
Now the documentation should be generated correctly and vsx isn't always present.
1 parent e933e71 commit c262de9

File tree

1 file changed

+4
-3
lines changed
  • crates/core_arch/src/powerpc

1 file changed

+4
-3
lines changed

crates/core_arch/src/powerpc/mod.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
//! PowerPC intrinsics
2-
3-
#[cfg(target_feature = "altivec")]
2+
#[cfg(any(target_feature = "altivec", doc))]
43
mod altivec;
5-
#[cfg(target_feature = "altivec")]
4+
#[cfg(any(target_feature = "altivec", doc))]
65
pub use self::altivec::*;
76

7+
#[cfg(any(target_feature = "vsx", doc))]
88
mod vsx;
9+
#[cfg(any(target_feature = "vsx", doc))]
910
pub use self::vsx::*;
1011

1112
#[cfg(test)]

0 commit comments

Comments
 (0)