Skip to content

Commit

Permalink
Allow unused tuple struct field in WithOpaqueHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Nov 25, 2023
1 parent 16087ee commit a65b51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/boxed/thin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +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)]
struct WithOpaqueHeader(NonNull<u8>);
struct WithOpaqueHeader(#[allow(unused_tuple_struct_fields)] NonNull<u8>);

impl WithOpaqueHeader {
#[cfg(not(no_global_oom_handling))]
Expand Down

0 comments on commit a65b51b

Please sign in to comment.