From 87f9989a7811d1879c423f75d95ea75d2f9db528 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sat, 25 Mar 2023 21:01:50 +0000 Subject: [PATCH] Fix the powerpc feature guards Now the documentation should be generated correctly and vsx isn't always present. --- crates/core_arch/src/powerpc/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/core_arch/src/powerpc/mod.rs b/crates/core_arch/src/powerpc/mod.rs index 9765d11d1f..ea82e451fe 100644 --- a/crates/core_arch/src/powerpc/mod.rs +++ b/crates/core_arch/src/powerpc/mod.rs @@ -1,11 +1,12 @@ //! PowerPC intrinsics - -#[cfg(target_feature = "altivec")] +#[cfg(any(target_feature = "altivec", doc))] mod altivec; -#[cfg(target_feature = "altivec")] +#[cfg(any(target_feature = "altivec", doc))] pub use self::altivec::*; +#[cfg(any(target_feature = "vsx", doc))] mod vsx; +#[cfg(any(target_feature = "vsx", doc))] pub use self::vsx::*; #[cfg(test)]