Skip to content

Commit 9a2779c

Browse files
committed
Allow the use of the deprecated llvm_asm! in black_box
1 parent 93e8372 commit 9a2779c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/hint.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ pub fn spin_loop() {
155155
#[inline]
156156
#[unstable(feature = "bench_black_box", issue = "64102")]
157157
#[cfg_attr(not(bootstrap), allow(unused_mut))]
158+
#[cfg_attr(bootstrap, allow(deprecated))]
158159
pub fn black_box<T>(mut dummy: T) -> T {
159160
#[cfg(bootstrap)]
160161
// SAFETY: the inline assembly is a no-op.

0 commit comments

Comments
 (0)