Skip to content

Commit 82901dc

Browse files
committed
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 rust-lang/rust#85200, and add `#[allow(dead_code)]` to suppress them in this PR (I assume this is fine because rust-lang/rust#85200 also suppresses warnings in rustc's tests).
2 parents 0359331 + 9a877b8 commit 82901dc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c5cbf7852a7692c7c51df64c09a59e7838b55202
1+
4e880f8cbc191374ce7db335962489f41d6d4e3e

tests/compile-fail/validity/invalid_wide_raw.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ fn main() {
44
trait T { }
55
#[derive(Debug)]
66
struct S {
7+
#[allow(dead_code)]
78
x: * mut dyn T
89
}
910
dbg!(S { x: unsafe { std::mem::transmute((0usize, 0usize)) } }); //~ ERROR: encountered dangling vtable pointer in wide pointer

tests/run-pass/issue-3794.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ trait T {
66

77
#[derive(Debug)]
88
struct S {
9+
#[allow(dead_code)]
910
s: isize,
1011
}
1112

0 commit comments

Comments
 (0)