Auto merge of #1889 - hyd-dev:rustup, r=RalfJung
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).
This commit is contained in:
commit
82901dcbb3
3 changed files with 3 additions and 1 deletions
|
|
@ -1 +1 @@
|
|||
c5cbf7852a7692c7c51df64c09a59e7838b55202
|
||||
4e880f8cbc191374ce7db335962489f41d6d4e3e
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ fn main() {
|
|||
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
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ trait T {
|
|||
|
||||
#[derive(Debug)]
|
||||
struct S {
|
||||
#[allow(dead_code)]
|
||||
s: isize,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue