diff --git a/src/lib.rs b/src/lib.rs index b6e42c4..3c29f66 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -220,6 +220,7 @@ impl Not for Choice { /// code may break in a non-destructive way in the future, “constant-time” code /// is a continually moving target, and this is better than doing nothing. #[inline(never)] +#[cfg(not(feature = "core_hint_black_box"))] fn black_box(input: T) -> T { unsafe { // Optimization barrier