Skip to content

Commit aeeaed9

Browse files
committed
Remove no-longer-needed allow(dead_code) from Miri tests
`repr(transparent)` now silences the lint.
1 parent 92cc57b commit aeeaed9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/miri/tests/fail/issue-miri-1112.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
trait Empty {}
22

33
#[repr(transparent)]
4-
pub struct FunnyPointer(#[allow(dead_code)] dyn Empty);
4+
pub struct FunnyPointer(dyn Empty);
55

66
#[repr(C)]
77
pub struct Meta {

src/tools/miri/tests/fail/unaligned_pointers/drop_in_place.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@compile-flags: -Cdebug-assertions=no
22

33
#[repr(transparent)]
4-
struct HasDrop(#[allow(dead_code)] u8);
4+
struct HasDrop(u8);
55

66
impl Drop for HasDrop {
77
fn drop(&mut self) {}

0 commit comments

Comments
 (0)