Remove no-longer-needed allow(dead_code)
from Miri tests
`repr(transparent)` now silences the lint.
This commit is contained in:
parent
92cc57bafc
commit
aeeaed9ce1
@ -1,7 +1,7 @@
|
|||||||
trait Empty {}
|
trait Empty {}
|
||||||
|
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub struct FunnyPointer(#[allow(dead_code)] dyn Empty);
|
pub struct FunnyPointer(dyn Empty);
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Meta {
|
pub struct Meta {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//@compile-flags: -Cdebug-assertions=no
|
//@compile-flags: -Cdebug-assertions=no
|
||||||
|
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
struct HasDrop(#[allow(dead_code)] u8);
|
struct HasDrop(u8);
|
||||||
|
|
||||||
impl Drop for HasDrop {
|
impl Drop for HasDrop {
|
||||||
fn drop(&mut self) {}
|
fn drop(&mut self) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user