Skip to content

Commit

Permalink
Rollup merge of #118383 - shepmaster:unused-tuple-struct-field-cleanu…
Browse files Browse the repository at this point in the history
…p-stdlib, r=m-ou-se

Address unused tuple struct fields in the standard library
  • Loading branch information
matthiaskrgr authored Nov 29, 2023
2 parents 5e7f770 + 115eac0 commit f8628a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/alloc/src/boxed/thin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ struct WithHeader<H>(NonNull<u8>, PhantomData<H>);
/// An opaque representation of `WithHeader<H>` to avoid the
/// projection invariance of `<T as Pointee>::Metadata`.
#[repr(transparent)]
#[allow(unused_tuple_struct_fields)] // Field only used through `WithHeader` type above.
struct WithOpaqueHeader(NonNull<u8>);

impl WithOpaqueHeader {
Expand Down

0 comments on commit f8628a1

Please sign in to comment.