We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
allow(dead_code)
1 parent ca0cddb commit dd12f3aCopy full SHA for dd12f3a
tests/fail/issue-miri-1112.rs
@@ -1,7 +1,7 @@
1
trait Empty {}
2
3
#[repr(transparent)]
4
-pub struct FunnyPointer(#[allow(dead_code)] dyn Empty);
+pub struct FunnyPointer(dyn Empty);
5
6
#[repr(C)]
7
pub struct Meta {
tests/fail/unaligned_pointers/drop_in_place.rs
//@compile-flags: -Cdebug-assertions=no
-struct HasDrop(#[allow(dead_code)] u8);
+struct HasDrop(u8);
impl Drop for HasDrop {
fn drop(&mut self) {}
0 commit comments