Skip to content

Commit 6fd4f34

Browse files
committed
Allow the use of the deprecated llvm_asm! in black_box
1 parent 4dd933c commit 6fd4f34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: library/core/src/hint.rs

+1
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)