Skip to content

Commit 9a877b8

Browse files
author
hyd-dev
committed
Add #[allow(dead_code)] in some tests
1 parent 0359331 commit 9a877b8

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)