Add `#[allow(dead_code)]` in some tests
There are some new dead code warnings in the tests: https://github.com/rust-lang/miri/runs/
3573853719?check_suite_focus=true#step:8:290
I guess this is related to https://github.com/rust-lang/rust/pull/85200, and add `#[allow(dead_code)]` to suppress them in this PR (I assume this is fine because https://github.com/rust-lang/rust/pull/85200 also suppresses warnings in rustc's tests).
-c5cbf7852a7692c7c51df64c09a59e7838b55202
+4e880f8cbc191374ce7db335962489f41d6d4e3e
trait T { }
#[derive(Debug)]
struct S {
+ #[allow(dead_code)]
x: * mut dyn T
}
dbg!(S { x: unsafe { std::mem::transmute((0usize, 0usize)) } }); //~ ERROR: encountered dangling vtable pointer in wide pointer
#[derive(Debug)]
struct S {
+ #[allow(dead_code)]
s: isize,
}