We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95386b6 commit 1dd3df6Copy full SHA for 1dd3df6
library/core/src/hint.rs
@@ -110,7 +110,7 @@ pub fn spin_loop() {
110
/// backend used. Programs cannot rely on `black_box` for *correctness* in any way.
111
#[inline]
112
#[unstable(feature = "test", issue = "50297")]
113
-#[allow(unreachable_code)] // this makes #[cfg] a bit easier below.
+#[cfg_attr(miri, allow(unused_mut))]
114
pub fn black_box<T>(mut dummy: T) -> T {
115
// We need to "use" the argument in some way LLVM can't introspect, and on
116
// targets that support it we can typically leverage inline assembly to do
0 commit comments