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

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

View File

@ -3,7 +3,7 @@
use std::mem;
#[repr(transparent)]
struct Foo(#[allow(dead_code)] u32);
struct Foo(u32);
const TRANSMUTED_U32: u32 = unsafe { mem::transmute(Foo(3)) };

View File

@ -17,7 +17,7 @@ use std::sync::{Mutex, RwLock};
struct Wrapper<T>(#[allow(dead_code)] T);
#[repr(transparent)]
struct Transparent<T>(#[allow(dead_code)] T);
struct Transparent<T>(T);
struct NoNiche<T>(UnsafeCell<T>);

View File

@ -24,7 +24,7 @@ impl<'a> Drop for Aligned<'a> {
}
#[repr(transparent)]
struct NotCopy(#[allow(dead_code)] u8);
struct NotCopy(u8);
#[repr(packed)]
struct Packed<'a>(NotCopy, Aligned<'a>);