diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-11-29 04:23:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-29 04:23:28 +0100 |
| commit | f8628a179dbadeeddf59b8d53cae20467f036404 (patch) | |
| tree | 83103e6863b376a5e6f643269123690281771193 | |
| parent | 5e7f770a0d8e63e4ef9ce14dac5077728208c394 (diff) | |
| parent | 115eac03bbd2a4b8b301c3bc627bd0f2c1235525 (diff) | |
| download | rust-f8628a179dbadeeddf59b8d53cae20467f036404.tar.gz rust-f8628a179dbadeeddf59b8d53cae20467f036404.zip | |
Rollup merge of #118383 - shepmaster:unused-tuple-struct-field-cleanup-stdlib, r=m-ou-se
Address unused tuple struct fields in the standard library
| -rw-r--r-- | library/alloc/src/boxed/thin.rs | 1 |
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 { |
