Skip to content

Commit 6410953

Browse files
committed
Change new black_box impl to also be #[inline(never)].
1 parent 1ac233f commit 6410953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ fn black_box(input: u8) -> u8 {
230230
}
231231

232232
#[cfg(feature = "core_hint_black_box")]
233-
#[inline]
233+
#[inline(never)]
234234
fn black_box(input: u8) -> u8 {
235235
debug_assert!((input == 0u8) | (input == 1u8));
236236
core::hint::black_box(input)

0 commit comments

Comments
 (0)