From 3a161265505bbc6e2b2cd5876987388e09fcecfc Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Sat, 5 Aug 2023 16:01:57 +0100 Subject: [PATCH] Allow non-dummy feature to absorb dummy feature This will allow building with --all-features --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6152309..d36d4a3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -33,7 +33,7 @@ pub mod print; #[cfg(feature = "personality")] mod personality; -#[cfg(feature = "personality-dummy")] +#[cfg(all(not(feature = "personality"), feature = "personality-dummy"))] mod personality_dummy; #[cfg(feature = "panic")] @@ -43,7 +43,7 @@ pub mod panicking; #[cfg(feature = "panic-handler")] mod panic_handler; -#[cfg(feature = "panic-handler-dummy")] +#[cfg(all(not(feature = "panic-handler"), feature = "panic-handler-dummy"))] mod panic_handler_dummy; #[cfg(feature = "system-alloc")]