Skip to content

Commit 0c2e30b

Browse files
committed
avoid blanket allow(unused)
1 parent aec62f8 commit 0c2e30b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/tests/fail/function_calls/arg_inplace_locals_alias.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//@compile-flags: -Zmiri-disable-validation
77

88
#![feature(custom_mir, core_intrinsics)]
9-
#![allow(unused)]
109

1110
use std::intrinsics::mir::*;
1211

@@ -31,6 +30,7 @@ fn main() {
3130
}
3231
}
3332

33+
#[expect(unused_variables, unused_assignments)]
3434
fn callee(x: S, mut y: S) {
3535
// With the setup above, if `x` and `y` are both moved,
3636
// then writing to `y` will change the value stored in `x`!

0 commit comments

Comments
 (0)