about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2021-08-12 00:18:53 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2021-08-15 13:14:32 +0100
commit6fd4f3463f54a7b06189dcc783d5e14593ff7e15 (patch)
treeeaa881001f2c2ac961082f60254c05a3507d3152
parent4dd933cdc244e9aed766553909a5ebf7572baec1 (diff)
Allow the use of the deprecated llvm_asm! in black_box
-rw-r--r--library/core/src/hint.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/hint.rs b/library/core/src/hint.rs
index a4924554919..ba878ff66a0 100644
--- a/library/core/src/hint.rs
+++ b/library/core/src/hint.rs
@@ -155,6 +155,7 @@ pub fn spin_loop() {
 #[inline]
 #[unstable(feature = "bench_black_box", issue = "64102")]
 #[cfg_attr(not(bootstrap), allow(unused_mut))]
+#[cfg_attr(bootstrap, allow(deprecated))]
 pub fn black_box<T>(mut dummy: T) -> T {
     #[cfg(bootstrap)]
     // SAFETY: the inline assembly is a no-op.