Remove no-longer-needed allow(dead_code) from Miri tests

`repr(transparent)` now silences the lint.
This commit is contained in:
Jake Goulding 2024-01-18 13:14:24 -05:00
parent 92cc57bafc
commit aeeaed9ce1
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
trait Empty {}
#[repr(transparent)]
pub struct FunnyPointer(#[allow(dead_code)] dyn Empty);
pub struct FunnyPointer(dyn Empty);
#[repr(C)]
pub struct Meta {

View File

@ -1,7 +1,7 @@
//@compile-flags: -Cdebug-assertions=no
#[repr(transparent)]
struct HasDrop(#[allow(dead_code)] u8);
struct HasDrop(u8);
impl Drop for HasDrop {
fn drop(&mut self) {}