about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJake Goulding <jake.goulding@gmail.com>2023-11-25 15:45:44 -0500
committerJake Goulding <jake.goulding@gmail.com>2023-11-28 12:00:54 -0500
commit115eac03bbd2a4b8b301c3bc627bd0f2c1235525 (patch)
tree0cccc223f303de33978cb746d26808c76d402a8a
parent9f15a889f0cfa8e407beaa3a44205de971572101 (diff)
downloadrust-115eac03bbd2a4b8b301c3bc627bd0f2c1235525.tar.gz
rust-115eac03bbd2a4b8b301c3bc627bd0f2c1235525.zip
Address unused tuple struct fields in the standard library
-rw-r--r--library/alloc/src/boxed/thin.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/boxed/thin.rs b/library/alloc/src/boxed/thin.rs
index f83c8f83cc9..a8005b7067d 100644
--- a/library/alloc/src/boxed/thin.rs
+++ b/library/alloc/src/boxed/thin.rs
@@ -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 {