Rollup merge of #118383 - shepmaster:unused-tuple-struct-field-cleanup-stdlib, r=m-ou-se
Address unused tuple struct fields in the standard library
This commit is contained in:
commit
f8628a179d
@ -171,6 +171,7 @@ struct WithHeader<H>(NonNull<u8>, PhantomData<H>);
|
|||||||
/// An opaque representation of `WithHeader<H>` to avoid the
|
/// An opaque representation of `WithHeader<H>` to avoid the
|
||||||
/// projection invariance of `<T as Pointee>::Metadata`.
|
/// projection invariance of `<T as Pointee>::Metadata`.
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
|
#[allow(unused_tuple_struct_fields)] // Field only used through `WithHeader` type above.
|
||||||
struct WithOpaqueHeader(NonNull<u8>);
|
struct WithOpaqueHeader(NonNull<u8>);
|
||||||
|
|
||||||
impl WithOpaqueHeader {
|
impl WithOpaqueHeader {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user