mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
Remove no-longer-needed allow(dead_code) from Miri tests
`repr(transparent)` now silences the lint.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user