We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dd933c commit 6fd4f34Copy full SHA for 6fd4f34
library/core/src/hint.rs
@@ -155,6 +155,7 @@ pub fn spin_loop() {
155
#[inline]
156
#[unstable(feature = "bench_black_box", issue = "64102")]
157
#[cfg_attr(not(bootstrap), allow(unused_mut))]
158
+#[cfg_attr(bootstrap, allow(deprecated))]
159
pub fn black_box<T>(mut dummy: T) -> T {
160
#[cfg(bootstrap)]
161
// SAFETY: the inline assembly is a no-op.
0 commit comments