about summary refs log tree commit diff
diff options
context:
space:
mode:
-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.