diff --git a/src/lib.rs b/src/lib.rs index b6e42c4..0a6ce0f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -219,6 +219,7 @@ impl Not for Choice { /// Note: Rust's notion of "volatile" is subject to change over time. While this /// 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. +#[cfg(not(feature = "core_hint_black_box"))] #[inline(never)] fn black_box(input: T) -> T { unsafe {