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