Skip to content

Commit a65b51b

Browse files
committed
Allow unused tuple struct field in WithOpaqueHeader
1 parent 16087ee commit a65b51b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/boxed/thin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ struct WithHeader<H>(NonNull<u8>, PhantomData<H>);
171171
/// An opaque representation of `WithHeader<H>` to avoid the
172172
/// projection invariance of `<T as Pointee>::Metadata`.
173173
#[repr(transparent)]
174-
struct WithOpaqueHeader(NonNull<u8>);
174+
struct WithOpaqueHeader(#[allow(unused_tuple_struct_fields)] NonNull<u8>);
175175

176176
impl WithOpaqueHeader {
177177
#[cfg(not(no_global_oom_handling))]

0 commit comments

Comments
 (0)