Skip to content

Commit

Permalink
Address unused tuple struct fields in the standard library
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Nov 28, 2023
1 parent 9f15a88 commit 115eac0
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 115eac0

Please sign in to comment.